mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-28 20:43:36 +01:00
display: fix a bad overflow for empty lines due to clipping
This commit is contained in:
parent
850544349c
commit
7b40e1e0d0
1 changed files with 1 additions and 1 deletions
|
@ -42,6 +42,6 @@ void gint_dvline(int y1, int y2, int x, uint16_t color)
|
||||||
uint16_t *v = gint_vram + 396 * y1 + x;
|
uint16_t *v = gint_vram + 396 * y1 + x;
|
||||||
int height = y2 - y1 + 1;
|
int height = y2 - y1 + 1;
|
||||||
|
|
||||||
while(height--) *v = color, v += 396;
|
while(height-- > 0) *v = color, v += 396;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue