mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Whoops, forgot to actually enumerate physical display resolutions.
This commit is contained in:
parent
927c44e9d8
commit
02af656d1c
|
@ -231,10 +231,30 @@ void CGfxLibrary::InitAPIs(void)
|
|||
|
||||
#else
|
||||
|
||||
static void sdl_addmodes(CDisplayAdapter *pda, Uint32 flags)
|
||||
{
|
||||
const int dpy = 0; // !!! FIXME: hook up a cvar?
|
||||
|
||||
// initialize CDS support (enumerate modes at startup)
|
||||
void CGfxLibrary::InitAPIs(void)
|
||||
{
|
||||
// no need for gfx when dedicated server is on
|
||||
if( _bDedicatedServer) return;
|
||||
|
||||
// fill OpenGL adapter info
|
||||
CDisplayAdapter *pda;
|
||||
INDEX iResolution;
|
||||
|
||||
gl_gaAPI[GAT_OGL].ga_ctAdapters = 1;
|
||||
gl_gaAPI[GAT_OGL].ga_iCurrentAdapter = 0;
|
||||
pda = &gl_gaAPI[GAT_OGL].ga_adaAdapter[0];
|
||||
pda->da_ulFlags = 0;
|
||||
pda->da_strVendor = TRANS( "unknown");
|
||||
pda->da_strRenderer = TRANS( "Default ICD");
|
||||
pda->da_strVersion = "1.1+";
|
||||
|
||||
// detect modes for OpenGL ICD
|
||||
pda->da_ctDisplayModes = 0;
|
||||
pda->da_iCurrentDisplayMode = -1;
|
||||
|
||||
const int dpy = 0; // !!! FIXME: hook up a cvar?
|
||||
const int total = SDL_GetNumDisplayModes(dpy);
|
||||
for (int i = 0; i < total; i++)
|
||||
{
|
||||
|
@ -264,30 +284,6 @@ static void sdl_addmodes(CDisplayAdapter *pda, Uint32 flags)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// initialize CDS support (enumerate modes at startup)
|
||||
void CGfxLibrary::InitAPIs(void)
|
||||
{
|
||||
// no need for gfx when dedicated server is on
|
||||
if( _bDedicatedServer) return;
|
||||
|
||||
// fill OpenGL adapter info
|
||||
CDisplayAdapter *pda;
|
||||
INDEX iResolution;
|
||||
|
||||
gl_gaAPI[GAT_OGL].ga_ctAdapters = 1;
|
||||
gl_gaAPI[GAT_OGL].ga_iCurrentAdapter = 0;
|
||||
pda = &gl_gaAPI[GAT_OGL].ga_adaAdapter[0];
|
||||
pda->da_ulFlags = 0;
|
||||
pda->da_strVendor = TRANS( "unknown");
|
||||
pda->da_strRenderer = TRANS( "Default ICD");
|
||||
pda->da_strVersion = "1.1+";
|
||||
|
||||
// detect modes for OpenGL ICD
|
||||
pda->da_ctDisplayModes = 0;
|
||||
pda->da_iCurrentDisplayMode = -1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user