display: fix a bad overflow for empty lines due to clipping

This commit is contained in:
Lephe 2021-05-30 23:46:11 +02:00
parent 850544349c
commit 7b40e1e0d0
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -42,6 +42,6 @@ void gint_dvline(int y1, int y2, int x, uint16_t color)
uint16_t *v = gint_vram + 396 * y1 + x;
int height = y2 - y1 + 1;
while(height--) *v = color, v += 396;
while(height-- > 0) *v = color, v += 396;
}