D3D support should set the video mode via D3D rather than windows - this allows proper support for various duel-driver systems. (where we wouldn't know which screen was which anyway)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@69 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-08-27 00:51:25 +00:00
parent b0fb7f242c
commit 30605d11b7
1 changed files with 3 additions and 3 deletions

View File

@ -404,8 +404,8 @@ qboolean VID_SetFullDIBMode (rendererstate_t *info)
int lastmodestate, wwidth, wheight;
RECT rect;
if (leavecurrentmode) //make windows change res.
{
if (leavecurrentmode && Q_strcasecmp(info->glrenderer, "D3D")) //don't do this with d3d - d3d should set it's own video mode.
{ //make windows change res.
gdevmode.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
if (info->bpp)
gdevmode.dmFields |= DM_BITSPERPEL;
@ -681,7 +681,7 @@ qboolean VID_AttachGL (rendererstate_t *info)
{
zbpp = Q_atoi(com_argv[COM_CheckParm("-zbpp")+1]);
}
d3dSetMode(vid_isfullscreen, info->width, info->height, info->bpp, zbpp); //d3d cheats to get it's dimensions and stuff... One that we can currently live with though.
d3dSetMode(info->fullscreen, info->width, info->height, info->bpp, zbpp); //d3d cheats to get it's dimensions and stuff... One that we can currently live with though.
gl_ztrickdisabled |= 2; //ztrick does funny things.
Cvar_Set(&gl_ztrick, "0");