Parcourir la source

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

Sam Lantinga il y a 7 ans
Parent
commit
b3b5c47366
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/render/metal/SDL_render_metal.m

+ 1 - 1
src/render/metal/SDL_render_metal.m

@@ -825,7 +825,7 @@ adjustx(const float val)
 static inline float
 static inline float
 adjusty(const float val)
 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.
 // normalize a value from 0.0f to len into 0.0f to 1.0f.