SDL_WINDOWPOS_CENTERED and SDL_WINDOWPOS_CENETERED_DISPLAY |
SDL_WINDOWPOS_CENTERED and SDL_WINDOWPOS_CENETERED_DISPLAY |
Jonas Kulla
Guest
|
The macros don't give you the actual coordinates for a centered window. Instead they resolve
to specific key values that SDL recognizes and acts upon. It's like passing -1 to a function expecting a string length: you don't actually mean to say "this string is -1 characters long", but instead the function understands that -1 means "the string is null terminated". If you look into SDL_video.h, you'll see that all the macro does is OR the display index with 0x2FFF0000. 2015-02-20 3:52 GMT+01:00 trevor.shawn.williams:
|
|||||||||||||
|