summaryrefslogtreecommitdiff
path: root/src/til_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/til_fb.c')
-rw-r--r--src/til_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/til_fb.c b/src/til_fb.c
index aa20fd9..5de7035 100644
--- a/src/til_fb.c
+++ b/src/til_fb.c
@@ -595,7 +595,7 @@ int til_fb_fragment_slice_single(const til_fb_fragment_t *fragment, unsigned n_f
*(res_fragment->texture) = (til_fb_fragment_t){
.buf = fragment->texture->buf + yoff * fragment->texture->pitch,
.x = fragment->x,
- .y = yoff,
+ .y = fragment->y + yoff,
.width = fragment->width,
.height = MIN(fragment->height - yoff, slice),
.frame_width = fragment->frame_width,
© All Rights Reserved