mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-30 05:35:54 +01:00
23 lines
507 B
C++
23 lines
507 B
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#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 ...
|
|
|
|
|