yaft: fix off-by-one in blit area calculation

This commit is contained in:
Stefan Seyfried
2018-02-18 00:27:27 +01:00
committed by Thilo Graf
parent b95b0cceeb
commit 26e4ad4379

View File

@@ -749,8 +749,8 @@ void YaFT_p::draw_line(int line)
if (fb.dy_min > line * CELL_HEIGHT)
fb.dy_min = line * CELL_HEIGHT;
if (fb.dy_max < (line+1) * CELL_HEIGHT - 1)
fb.dy_max = (line+1) * CELL_HEIGHT - 1;
if (fb.dy_max < (line+1) * CELL_HEIGHT)
fb.dy_max = (line+1) * CELL_HEIGHT;
for (col = 0; col < cols; col++) {
/* target cell */