[Commits] SDL: Fixed direction of y adjustment for new orthographic projec...

libsdl.org revision control commits-owner at libsdl.org
Tue Jan 2 14:25:26 PST 2018


details:   https://hg.libsdl.org/SDL/rev/6b3d9e08c586
changeset: 11807:6b3d9e08c586
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Jan 02 14:32:15 2018 -0800
description:
Fixed direction of y adjustment for new orthographic projection in the metal renderer

diffstat:

 src/render/metal/SDL_render_metal.m |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r aa740c67a96a -r 6b3d9e08c586 src/render/metal/SDL_render_metal.m
--- a/src/render/metal/SDL_render_metal.m	Tue Jan 02 14:11:10 2018 -0800
+++ b/src/render/metal/SDL_render_metal.m	Tue Jan 02 14:32:15 2018 -0800
@@ -825,7 +825,7 @@
 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.


More information about the commits mailing list