Removed no longer used SDL wrapper functions from OS X native backend

This commit is contained in:
alexey.lysiuk 2014-12-13 12:32:20 +02:00
parent da8f2185d8
commit 6241f047a8

View file

@ -1725,72 +1725,6 @@ int SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode *mode)
return 0; return 0;
} }
SDL_Rect** SDL_ListModes(SDL_PixelFormat* format, Uint32 flags)
{
ZD_UNUSED(format);
ZD_UNUSED(flags);
static std::vector<SDL_Rect*> resolutions;
if (resolutions.empty())
{
#define DEFINE_RESOLUTION(WIDTH, HEIGHT) \
static SDL_Rect resolution_##WIDTH##_##HEIGHT = { 0, 0, WIDTH, HEIGHT }; \
resolutions.push_back(&resolution_##WIDTH##_##HEIGHT);
DEFINE_RESOLUTION( 640, 480);
DEFINE_RESOLUTION( 720, 480);
DEFINE_RESOLUTION( 800, 480);
DEFINE_RESOLUTION( 800, 600);
DEFINE_RESOLUTION(1024, 600);
DEFINE_RESOLUTION(1024, 640);
DEFINE_RESOLUTION(1024, 768);
DEFINE_RESOLUTION(1152, 720);
DEFINE_RESOLUTION(1152, 864);
DEFINE_RESOLUTION(1280, 720);
DEFINE_RESOLUTION(1280, 768);
DEFINE_RESOLUTION(1280, 800);
DEFINE_RESOLUTION(1280, 854);
DEFINE_RESOLUTION(1280, 960);
DEFINE_RESOLUTION(1280, 1024);
DEFINE_RESOLUTION(1366, 768);
DEFINE_RESOLUTION(1400, 1050);
DEFINE_RESOLUTION(1440, 900);
DEFINE_RESOLUTION(1440, 960);
DEFINE_RESOLUTION(1440, 1080);
DEFINE_RESOLUTION(1600, 900);
DEFINE_RESOLUTION(1600, 1200);
DEFINE_RESOLUTION(1680, 1050);
DEFINE_RESOLUTION(1920, 1080);
DEFINE_RESOLUTION(1920, 1200);
DEFINE_RESOLUTION(2048, 1080);
DEFINE_RESOLUTION(2048, 1536);
DEFINE_RESOLUTION(2560, 1080);
DEFINE_RESOLUTION(2560, 1440);
DEFINE_RESOLUTION(2560, 1600);
DEFINE_RESOLUTION(2560, 2048);
DEFINE_RESOLUTION(2880, 1800);
DEFINE_RESOLUTION(3200, 1800);
DEFINE_RESOLUTION(3440, 1440);
DEFINE_RESOLUTION(3840, 2160);
DEFINE_RESOLUTION(3840, 2400);
DEFINE_RESOLUTION(4096, 2160);
DEFINE_RESOLUTION(5120, 2880);
#undef DEFINE_RESOLUTION
resolutions.push_back(NULL);
}
return &resolutions[0];
}
int SDL_ShowCursor(int)
{
// Does nothing
return 0;
}
static SDL_PixelFormat* GetPixelFormat() static SDL_PixelFormat* GetPixelFormat()
{ {
@ -2205,10 +2139,6 @@ DarwinVersion GetDarwinVersion()
const DarwinVersion darwinVersion = GetDarwinVersion(); const DarwinVersion darwinVersion = GetDarwinVersion();
#ifdef main
#undef main
#endif // main
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
gettimeofday(&s_startTicks, NULL); gettimeofday(&s_startTicks, NULL);