cleanup
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
#include "RageTextureManager.h"
|
#include "RageTextureManager.h"
|
||||||
#include "RageMath.h"
|
#include "RageMath.h"
|
||||||
#include "RageTypes.h"
|
#include "RageTypes.h"
|
||||||
#include "StepMania.h"
|
|
||||||
#include "RageSurface.h"
|
#include "RageSurface.h"
|
||||||
#include "RageSurfaceUtils.h"
|
#include "RageSurfaceUtils.h"
|
||||||
#include "EnumHelper.h"
|
#include "EnumHelper.h"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "GraphicsWindow.h"
|
#include "GraphicsWindow.h"
|
||||||
#include "StepMania.h"
|
|
||||||
#include "ProductInfo.h"
|
#include "ProductInfo.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageUtil.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. */
|
* because that's where most other apps seem to do it. */
|
||||||
if( g_bHasFocus && !bHadFocus )
|
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 );
|
ChangeDisplaySettings( &g_FullScreenDevMode, CDS_FULLSCREEN );
|
||||||
#else
|
|
||||||
bool bNewDevice;
|
|
||||||
VideoModeParams p;
|
|
||||||
StepMania::GetPreferredVideoModeParams( p );
|
|
||||||
DISPLAY->SetVideoMode( p, bNewDevice );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ShowWindow( g_hWndMain, SW_SHOWNORMAL );
|
ShowWindow( g_hWndMain, SW_SHOWNORMAL );
|
||||||
}
|
}
|
||||||
else if( !g_bHasFocus && bHadFocus )
|
else if( !g_bHasFocus && bHadFocus )
|
||||||
|
|||||||
Reference in New Issue
Block a user