mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-29 13:03:36 +01:00
render-cg: fix an incorrect x bound on vertical lines
This commit is contained in:
parent
7adcdea5f1
commit
192ff17303
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ void gint_dhline(int x1, int x2, int y, uint16_t color)
|
||||||
void gint_dvline(int y1, int y2, int x, uint16_t color)
|
void gint_dvline(int y1, int y2, int x, uint16_t color)
|
||||||
{
|
{
|
||||||
/* Order and bounds */
|
/* Order and bounds */
|
||||||
if((uint)x >= 395) return;
|
if((uint)x >= 396) return;
|
||||||
if(y1 > y2) swap(y1, y2);
|
if(y1 > y2) swap(y1, y2);
|
||||||
if(y1 < 0) y1 = 0;
|
if(y1 < 0) y1 = 0;
|
||||||
if(y2 >= 224) y2 = 223;
|
if(y2 >= 224) y2 = 223;
|
||||||
|
|
Loading…
Reference in a new issue