cleanup
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include "RageTextureManager.h"
|
||||
#include "RageMath.h"
|
||||
#include "RageTypes.h"
|
||||
#include "StepMania.h"
|
||||
#include "RageSurface.h"
|
||||
#include "RageSurfaceUtils.h"
|
||||
#include "EnumHelper.h"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "GraphicsWindow.h"
|
||||
#include "StepMania.h"
|
||||
#include "ProductInfo.h"
|
||||
#include "RageLog.h"
|
||||
#include "RageUtil.h"
|
||||
@@ -82,18 +81,7 @@ static LRESULT CALLBACK GraphicsWindow_WndProc( HWND hWnd, UINT msg, WPARAM wPar
|
||||
* because that's where most other apps seem to do it. */
|
||||
if( g_bHasFocus && !bHadFocus )
|
||||
{
|
||||
// Set the video mode through DISPLAY instead of ChangeDisplaySettings
|
||||
// so that the viewport is correctly reset.
|
||||
|
||||
#if 1
|
||||
ChangeDisplaySettings( &g_FullScreenDevMode, CDS_FULLSCREEN );
|
||||
#else
|
||||
bool bNewDevice;
|
||||
VideoModeParams p;
|
||||
StepMania::GetPreferredVideoModeParams( p );
|
||||
DISPLAY->SetVideoMode( p, bNewDevice );
|
||||
#endif
|
||||
|
||||
ShowWindow( g_hWndMain, SW_SHOWNORMAL );
|
||||
}
|
||||
else if( !g_bHasFocus && bHadFocus )
|
||||
|
||||
Reference in New Issue
Block a user