From 30605d11b71c5fec35d126393f16b1783de7e79b Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 27 Aug 2004 00:51:25 +0000 Subject: [PATCH] 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 --- engine/gl/gl_vidnt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index 2961df637..7fafa9300 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -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");