Skip to content

Commit 9394f3d

Browse files
authored
Add files via upload
1 parent 69db97c commit 9394f3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

upcean/predraw/precairo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def new_image_surface(sizex, sizey, bgcolor, imtype=None):
376376
"""
377377
if(imtype is None):
378378
surface = cairo.RecordingSurface(
379-
cairo.CONTENT_COLOR, float(sizex), float(sizey)
379+
cairo.CONTENT_COLOR, (0.0, 0.0, float(sizex), float(sizey))
380380
)
381381
elif(imtype=="image"):
382382
surface = cairo.ImageSurface(
@@ -396,7 +396,7 @@ def new_image_surface(sizex, sizey, bgcolor, imtype=None):
396396
)
397397
else:
398398
surface = cairo.RecordingSurface(
399-
cairo.CONTENT_COLOR, float(sizex), float(sizey)
399+
cairo.CONTENT_COLOR, (0.0, 0.0, float(sizex), float(sizey))
400400
)
401401
ctx = cairo.Context(surface)
402402
ctx.set_antialias(cairo.ANTIALIAS_NONE)

0 commit comments

Comments
 (0)