From 913fac7d1b5672156d43950cd4684b0c108898bb Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Wed, 16 Jul 2003 21:15:05 +0000 Subject: [PATCH] 0.7.7b Release --- Include/Cxbx.h | 2 +- Source/Win32/CxbxKrnl/EmuD3D8.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Include/Cxbx.h b/Include/Cxbx.h index 6ffe47242..31ba8e39f 100644 --- a/Include/Cxbx.h +++ b/Include/Cxbx.h @@ -61,7 +61,7 @@ typedef signed long sint32; // ****************************************************************** // * Define this to trace intercepted function calls // ****************************************************************** -//#define _DEBUG_TRACE +#define _DEBUG_TRACE // ****************************************************************** // * Version information diff --git a/Source/Win32/CxbxKrnl/EmuD3D8.cpp b/Source/Win32/CxbxKrnl/EmuD3D8.cpp index fa172ba6e..5ed9a7fec 100644 --- a/Source/Win32/CxbxKrnl/EmuD3D8.cpp +++ b/Source/Win32/CxbxKrnl/EmuD3D8.cpp @@ -283,8 +283,15 @@ static DWORD WINAPI EmuRenderWindow(LPVOID) { DWORD dwStyle = WS_OVERLAPPEDWINDOW; + int nTitleHeight = GetSystemMetrics(SM_CYCAPTION); + int nBorderWidth = GetSystemMetrics(SM_CXSIZEFRAME); + int nBorderHeight = GetSystemMetrics(SM_CYSIZEFRAME); + int x = 100, y = 100, nWidth = 640, nHeight = 480; + nWidth += nBorderWidth*2; + nHeight += nBorderHeight*2 + nTitleHeight; + sscanf(g_XBVideo.GetVideoResolution(), "%d x %d", &nWidth, &nHeight); if(g_XBVideo.GetFullscreen())