src/render/metal/SDL_render_metal.m
changeset 11807 6b3d9e08c586
parent 11806 aa740c67a96a
child 11809 4b858abfb24d
equal deleted inserted replaced
11806:aa740c67a96a 11807:6b3d9e08c586
   823 	return (val + 0.5f);
   823 	return (val + 0.5f);
   824 }
   824 }
   825 static inline float
   825 static inline float
   826 adjusty(const float val)
   826 adjusty(const float val)
   827 {
   827 {
   828 	return (val - 0.5f);
   828 	return (val + 0.5f);
   829 }
   829 }
   830 
   830 
   831 // normalize a value from 0.0f to len into 0.0f to 1.0f.
   831 // normalize a value from 0.0f to len into 0.0f to 1.0f.
   832 static inline float
   832 static inline float
   833 normtex(const float _val, const float len)
   833 normtex(const float _val, const float len)