From 26e4ad4379842d9909e3e99e7676f640a52c19f7 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 18 Feb 2018 00:27:27 +0100 Subject: [PATCH] yaft: fix off-by-one in blit area calculation --- src/gui/widget/yaft/yaft_priv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/yaft/yaft_priv.cpp b/src/gui/widget/yaft/yaft_priv.cpp index a23bb1315..f923c0bd4 100644 --- a/src/gui/widget/yaft/yaft_priv.cpp +++ b/src/gui/widget/yaft/yaft_priv.cpp @@ -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 */