|
@@ -114,16 +114,20 @@ void CGuiHandler::renderFrame()
|
|
{
|
|
{
|
|
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
|
|
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
|
|
|
|
|
|
- if(nullptr != curInt)
|
|
|
|
|
|
+ if (nullptr != curInt)
|
|
curInt->update();
|
|
curInt->update();
|
|
|
|
|
|
- if(settings["video"]["showfps"].Bool())
|
|
|
|
|
|
+ if (settings["video"]["showfps"].Bool())
|
|
drawFPSCounter();
|
|
drawFPSCounter();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ SDL_UpdateTexture(screenTexture, nullptr, screen->pixels, screen->pitch);
|
|
|
|
|
|
- SDL_UpdateTexture(screenTexture, nullptr, screen->pixels, screen->pitch);
|
|
|
|
|
|
+ SDL_RenderClear(mainRenderer);
|
|
|
|
+ SDL_RenderCopy(mainRenderer, screenTexture, nullptr, nullptr);
|
|
|
|
|
|
- SDL_RenderClear(mainRenderer);
|
|
|
|
- SDL_RenderCopy(mainRenderer, screenTexture, nullptr, nullptr);
|
|
|
|
|
|
+ {
|
|
|
|
+ boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
|
|
|
|
|
|
CCS->curh->render();
|
|
CCS->curh->render();
|
|
|
|
|