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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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;
}