Skip to content

Commit 350f2b0

Browse files
authored
fix viewportFlipY XOR condition (#26)
1 parent 8cb7b4c commit 350f2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/dk_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Device
9999

100100
// Rasterizer expects clip space +Y to point down. In UpperLeft mode with Y pointing up
101101
// (or LowerLeft mode with Y pointing down) we need to flip the incoming Y coordinate.
102-
bool viewportFlipY() const noexcept { return !isYAxisPointsDown() ^ !isOriginLowerLeft(); }
102+
bool viewportFlipY() const noexcept { return isYAxisPointsDown() ^ !isOriginLowerLeft(); }
103103

104104
DkResult initialize() noexcept;
105105
~Device();

0 commit comments

Comments
 (0)