Commit b3b5c4736644ae6b1ff935cf7283fe2a0a1ac6ff

Sam Lantinga 2018-01-02T14:32:15

Fixed direction of y adjustment for new orthographic projection in the metal renderer

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/metal/SDL_render_metal.m b/src/render/metal/SDL_render_metal.m
index cc0e4a2..39c8934 100644
--- a/src/render/metal/SDL_render_metal.m
+++ b/src/render/metal/SDL_render_metal.m
@@ -825,7 +825,7 @@ adjustx(const float val)
 static inline float
 adjusty(const float val)
 {
-	return (val - 0.5f);
+	return (val + 0.5f);
 }
 
 // normalize a value from 0.0f to len into 0.0f to 1.0f.