Skip to content

Commit d14cde0

Browse files
committed
Fix C128 Y coordinate translation.
1 parent 447db08 commit d14cde0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/c128/screen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ void screen_line_draw(padPt* Coord1, padPt* Coord2)
129129
{
130130
uint16_t x1=scalex[Coord1->x];
131131
uint16_t x2=scalex[Coord2->x];
132-
uint16_t y1=scaley[Coord1->y^0x1FF];
133-
uint16_t y2=scaley[Coord2->y^0x1FF];
132+
uint16_t y1=scaley[Coord1->y];
133+
uint16_t y2=scaley[Coord2->y];
134134

135135
screen_set_pen_mode();
136136
tgi_line(x1,y1,x2,y2);

0 commit comments

Comments
 (0)