Skip to content

Commit

Permalink
Fix off-by-one in 16 bit OVER blit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Aug 30, 2024
1 parent 745121e commit 03d4cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitmap_blit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool Blit(Bitmap& dest, int x, int y, Bitmap const& src, Rect src_rect,
memcpy(
dst_pixels + y * dst_pitch + run_beg,
src_pixels + y * src_pitch + run_beg,
x - bpp - run_beg);
x - run_beg);
}
}
}
Expand Down

0 comments on commit 03d4cd2

Please sign in to comment.