From 52a0dd2ffa81bcbef7a2d0e315f3c528ace8608b Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Wed, 16 Jul 2003 01:51:45 +0000 Subject: [PATCH] bah --- Include/Cxbx.h | 2 +- Source/Win32/CxbxKrnl/EmuD3D8.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Include/Cxbx.h b/Include/Cxbx.h index 254ed463c..c14de41ce 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 7d82dbe3f..51656d2bb 100644 --- a/Source/Win32/CxbxKrnl/EmuD3D8.cpp +++ b/Source/Win32/CxbxKrnl/EmuD3D8.cpp @@ -1700,7 +1700,9 @@ HRESULT WINAPI XTL::EmuIDirect3DDevice8_CreateTexture g_dwOverlayH = Height; } - // HACK HACK HACK!!! TODO: Make sure texture is the correct dimensions + // ****************************************************************** + // * adjust width/height to power of 2 + // ****************************************************************** { UINT NewWidth=0, NewHeight=0; @@ -2276,6 +2278,7 @@ HRESULT WINAPI XTL::EmuIDirect3DResource8_Register else { // TODO: HACK: Figure out why this is necessary! + // TODO: This is necessary for DXT1 textures at least (4x4 blocks minimum) if(dwWidth < 4) { printf("*Warning* expanding texture width (%d->4)\n", dwWidth);