diff options
Diffstat (limited to 'src/fb.h')
-rw-r--r-- | src/fb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ static inline void fb_fragment_put_pixel_unchecked(fb_fragment_t *fragment, int uint32_t *pixels = fragment->buf; /* FIXME this assumes stride is aligned to 4 */ - pixels[(y * (fragment->width + (fragment->stride >> 2))) + x] = pixel; + pixels[((y - fragment->y) * (fragment->width + (fragment->stride >> 2))) + (x - fragment->x)] = pixel; } |