Fixed direction of y adjustment for new orthographic projection in the metal renderer
authorSam Lantinga <slouken@libsdl.org>
Tue, 02 Jan 2018 14:32:15 -0800
changeset 118076b3d9e08c586
parent 11806 aa740c67a96a
child 11808 510c0e047122
Fixed direction of y adjustment for new orthographic projection in the metal renderer
src/render/metal/SDL_render_metal.m
     1.1 --- a/src/render/metal/SDL_render_metal.m	Tue Jan 02 14:11:10 2018 -0800
     1.2 +++ b/src/render/metal/SDL_render_metal.m	Tue Jan 02 14:32:15 2018 -0800
     1.3 @@ -825,7 +825,7 @@
     1.4  static inline float
     1.5  adjusty(const float val)
     1.6  {
     1.7 -	return (val - 0.5f);
     1.8 +	return (val + 0.5f);
     1.9  }
    1.10  
    1.11  // normalize a value from 0.0f to len into 0.0f to 1.0f.