Serious-Engine/Sources/Engine/Graphics/SDL/SDLAdapter.cpp

24 lines
537 B
C++
Raw Permalink Normal View History

/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
2016-04-19 21:54:31 +02:00
#define __STDC_LIMIT_MACROS 1
#include <stdio.h>
#include "SDL.h"
#include <Engine/Base/Types.h>
#include <Engine/Base/Assert.h>
// !!! FIXME: can we move this one function somewhere else?
ULONG DetermineDesktopWidth(void)
{
const int dpy = 0; // !!! FIXME: add a cvar for this?
SDL_DisplayMode mode;
const int rc = SDL_GetDesktopDisplayMode(dpy, &mode);
ASSERT(rc == 0);
return(mode.w);
} // DetermineDesktopWidth
// end of SDLAdapter.cpp ...