Let's make this forum active again
Main.cpp
Orginal
EditedCode:void SetModeParams() { #ifdef _PUBLISH g_ModeParams.bFullScreen = true; #else #ifdef _DEBUG g_ModeParams.bFullScreen = false; #else g_ModeParams.bFullScreen = ZGetConfiguration()->GetVideo()->bFullScreen; #endif #endif g_ModeParams.nWidth = ZGetConfiguration()->GetVideo()->nWidth; g_ModeParams.nHeight = ZGetConfiguration()->GetVideo()->nHeight; ZGetConfiguration()->GetVideo()->nColorBits == 32 ? g_ModeParams.PixelFormat = D3DFMT_X8R8G8B8 : g_ModeParams.PixelFormat = D3DFMT_R5G6B5 ; }
Code:void SetModeParams() { if( MessageBoxA( NULL, "Run in windowed mode ?", "GunZ: The Duel", MB_YESNO ) == IDYES ) { g_ModeParams.bFullScreen = false; } else { g_ModeParams.bFullScreen = true; } g_ModeParams.nWidth = ZGetConfiguration()->GetVideo()->nWidth; g_ModeParams.nHeight = ZGetConfiguration()->GetVideo()->nHeight; ZGetConfiguration()->GetVideo()->nColorBits == 32 ? g_ModeParams.PixelFormat = D3DFMT_X8R8G8B8 : g_ModeParams.PixelFormat = D3DFMT_R5G6B5 ; }


Reply With Quote



