Commit 0c9afca2 authored by Gerhard Stein's avatar Gerhard Stein

Display/Video refreshs improved

parent c11e400a
......@@ -34,15 +34,8 @@ mFXvStep(0)
}
}
void CGUIDialog::setBackground(GsSurface &bgSfc)
{
mBackgroundSfc.createCopy(bgSfc);
}
void CGUIDialog::updateGraphics()
{
//updateBackground();
for( auto &control : mControlList )
{
control->updateGraphics();
......
......@@ -57,9 +57,6 @@ public:
// processes the whole rendering of the Dialog
void processRendering(SDL_Surface *blit);
// Update the background. Happens when the Menu is created or graphical settings are changed within the game
void setBackground(GsSurface &bgSfc);
// Update all graphics. Happens when Video settings are normally changed
void updateGraphics();
......
......@@ -786,6 +786,13 @@ void CGameLauncher::ponderPatchDialog()
////
void CGameLauncher::ponder(const float deltaT)
{
// In case after display/video setting changes, we need to reset the native resolution
if(gVideoDriver.getRefreshSignal())
{
// Set the native resolution
gVideoDriver.setNativeResolution(gVideoDriver.getVidConfig().mDisplayRect);
}
if(mpMsgDialog)
{
// Command (Keyboard/Joystick) events for the game center dialog
......
......@@ -14,7 +14,6 @@
#include <widgets/GsMenuController.h>
#include "engine/core/CBehaviorEngine.h"
//#include "CameraSettings.h"
#include "CVideoSettings.h"
#include <base/utils/Utils.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment