summaryrefslogtreecommitdiff
path: root/src/vcr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vcr.c')
-rw-r--r--src/vcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcr.c b/src/vcr.c
index 711e17a..74e1c21 100644
--- a/src/vcr.c
+++ b/src/vcr.c
@@ -991,7 +991,7 @@ void vcr_draw_text(vcr_t *vcr, vcr_layer_t layer, int x, int row, const vcr_str_
#endif /* USE_XLIB */
case VCR_BACKEND_TYPE_MEM: {
- if (row >= 0 && row * VCR_ROW_HEIGHT < vcr->height) {
+ if (row >= 0 && (row + 1) * VCR_ROW_HEIGHT < vcr->height) {
int y = row * VCR_ROW_HEIGHT + 3;
uint8_t mask = (0x1 << layer);
© All Rights Reserved