Everywhere: Set default ctx->opacity to -1
This commit is contained in:
parent
a9c623685d
commit
3de382e6c5
2 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,7 @@ Context2D* @image_buffer_to_context2d(U8* buffer, I64 size)
|
|||
ctx->width = x;
|
||||
ctx->height = y;
|
||||
ctx->fb = pixels;
|
||||
ctx->opacity = -1;
|
||||
I64 i;
|
||||
for (i = 0; i < x * y; i++) {
|
||||
ctx->fb(U32*)[i] = @image_pixel_flip_rgb_bgr(ctx->fb(U32*)[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue