render-cg: fix an incorrect x bound on vertical lines

This commit is contained in:
Lephe 2021-09-05 17:55:29 +02:00
parent 7adcdea5f1
commit 192ff17303
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{
/* Order and bounds */
if((uint)x >= 395) return;
if((uint)x >= 396) return;
if(y1 > y2) swap(y1, y2);
if(y1 < 0) y1 = 0;
if(y2 >= 224) y2 = 223;