2016-03-29 03:03:54 +02:00
|
|
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
2016-04-19 21:54:31 +02:00
|
|
|
#define __STDC_LIMIT_MACROS 1
|
2016-03-29 03:03:54 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "SDL.h"
|
|
|
|
#include <Engine/Base/Types.h>
|
2016-04-09 08:18:57 +02:00
|
|
|
#include <Engine/Base/Assert.h>
|
|
|
|
|
|
|
|
// !!! FIXME: can we move this one function somewhere else?
|
2016-03-29 03:03:54 +02:00
|
|
|
|
|
|
|
ULONG DetermineDesktopWidth(void)
|
|
|
|
{
|
2016-04-09 08:18:57 +02:00
|
|
|
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);
|
2016-03-29 03:03:54 +02:00
|
|
|
} // DetermineDesktopWidth
|
|
|
|
|
|
|
|
// end of SDLAdapter.cpp ...
|
|
|
|
|
|
|
|
|