Skip to content

Commit 5265a01

Browse files
committed
lpdraw pkg: flip graph along y-axis
Also conditionally enable pixel on screen
1 parent a507c7f commit 5265a01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration_tests/lpdraw/draw.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
W = TypeVar("W")
66

77
def Pixel(H: i32, W: i32, Screen: i32[H, W], x: i32, y: i32) -> None:
8-
Screen[y, x] = 255
8+
if x >= 0 and y >= 0 and x < W and y < H:
9+
Screen[H - 1 - y, x] = 255
910

1011
def Clear(H: i32, W: i32, Screen: i32[H, W]):
1112
i: i32

0 commit comments

Comments
 (0)