diff options
author | Marvin Borner | 2020-10-28 18:22:38 +0100 |
---|---|---|
committer | Marvin Borner | 2020-10-28 18:22:38 +0100 |
commit | 913764dfca7b546719a004c17c081ca9f42ba13e (patch) | |
tree | 1f13680cb392d16e3d3d3f336475e03598619e24 /libgui/gfx.c | |
parent | 197ea3ca20879b29fca41a07cf43e5b04b9c5083 (diff) |
Added container functions
And some other stuff - as always in this highly professional project
Diffstat (limited to 'libgui/gfx.c')
-rw-r--r-- | libgui/gfx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgui/gfx.c b/libgui/gfx.c index 13cdcd3..63306e6 100644 --- a/libgui/gfx.c +++ b/libgui/gfx.c @@ -165,17 +165,17 @@ void gfx_ctx_on_ctx(struct context *dest, struct context *src, int x, int y) u8 *destfb = &dest->fb[x * bypp + y * dest->pitch]; for (u32 cy = 0; cy < src->height && cy + y < dest->height; cy++) { int diff = 0; - // TODO: Fix cursor for (u32 cx = 0; cx < src->width && cx + x < dest->width; cx++) { if (srcfb[3]) { destfb[0] = srcfb[0]; destfb[1] = srcfb[1]; destfb[2] = srcfb[2]; destfb[3] = srcfb[3]; - srcfb += bypp; - destfb += bypp; - diff += bypp; } + + srcfb += bypp; + destfb += bypp; + diff += bypp; } srcfb += src->pitch - diff; destfb += dest->pitch - diff; |