mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-13 07:14:36 +02:00
WinRT: merged with latest SDL 2.x/HG code
SDL 2.x recently accepted patches to enable OpenGL ES 2 support via Google's ANGLE library. The thought is to try to eventually merge SDL/WinRT's OpenGL code with SDL-official's.
This commit is contained in:
@@ -52,7 +52,12 @@ SDL_ceil(double x)
|
||||
#ifdef HAVE_CEIL
|
||||
return ceil(x);
|
||||
#else
|
||||
return (double)(int)((x)+0.5);
|
||||
double integer = SDL_floor(x);
|
||||
double fraction = x - integer;
|
||||
if (fraction > 0.0) {
|
||||
integer += 1.0;
|
||||
}
|
||||
return integer;
|
||||
#endif /* HAVE_CEIL */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user