mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 23:40:58 +00:00
gl_vidsdl.c: Remove "halfscreen" stuff.
AFAICS this is not needed for SDL, and it in fact breaks weird widescreen resolutions such as 1280x600. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@798 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
668a3c4959
commit
b557bbe95d
1 changed files with 0 additions and 19 deletions
|
@ -48,7 +48,6 @@ typedef struct {
|
|||
int modenum;
|
||||
int fullscreen;
|
||||
int bpp;
|
||||
int halfscreen;
|
||||
char modedesc[17];
|
||||
} vmode_t;
|
||||
|
||||
|
@ -965,7 +964,6 @@ static void VID_InitDIB (void)
|
|||
|
||||
modelist[0].modenum = MODE_WINDOWED;
|
||||
modelist[0].fullscreen = 0;
|
||||
modelist[0].halfscreen = 0;
|
||||
|
||||
nummodes = 1;
|
||||
}
|
||||
|
@ -1009,7 +1007,6 @@ static void VID_InitFullDIB (void)
|
|||
modelist[nummodes].width = modes[j]->w;
|
||||
modelist[nummodes].height = modes[j]->h;
|
||||
modelist[nummodes].modenum = 0;
|
||||
modelist[nummodes].halfscreen = 0;
|
||||
modelist[nummodes].fullscreen = 1;
|
||||
modelist[nummodes].bpp = bpps[i];
|
||||
|
||||
|
@ -1018,21 +1015,6 @@ static void VID_InitFullDIB (void)
|
|||
modelist[nummodes].height,
|
||||
modelist[nummodes].bpp);
|
||||
|
||||
// if the width is more than twice the height, reduce it by half because this
|
||||
// is probably a dual-screen monitor
|
||||
if (!COM_CheckParm("-noadjustaspect"))
|
||||
{
|
||||
if (modelist[nummodes].width > (modelist[nummodes].height << 1))
|
||||
{
|
||||
modelist[nummodes].width >>= 1;
|
||||
modelist[nummodes].halfscreen = 1;
|
||||
sprintf (modelist[nummodes].modedesc, "%dx%dx%d",
|
||||
modelist[nummodes].width,
|
||||
modelist[nummodes].height,
|
||||
modelist[nummodes].bpp);
|
||||
}
|
||||
}
|
||||
|
||||
for (k=originalnummodes, existingmode = 0 ; k < nummodes ; k++)
|
||||
{
|
||||
if ((modelist[nummodes].width == modelist[k].width) &&
|
||||
|
@ -1170,7 +1152,6 @@ void VID_Init (void)
|
|||
modelist[nummodes].width = width;
|
||||
modelist[nummodes].height = height;
|
||||
modelist[nummodes].modenum = 0;
|
||||
modelist[nummodes].halfscreen = 0;
|
||||
modelist[nummodes].fullscreen = 1;
|
||||
modelist[nummodes].bpp = bpp;
|
||||
sprintf (modelist[nummodes].modedesc, "%dx%dx%d",
|
||||
|
|
Loading…
Reference in a new issue