mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 03:55:40 +00:00
(Windows) Fixed some compiler errors.
This commit is contained in:
parent
6ff0ff1c47
commit
6b095bde05
|
@ -12,6 +12,8 @@
|
|||
#include "Window.h"
|
||||
#if defined(_WIN64)
|
||||
#include "utils/StringUtil.h"
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_opengl.h>
|
||||
#endif
|
||||
|
||||
#include <SDL2/SDL_events.h>
|
||||
|
@ -181,16 +183,16 @@ namespace Utils
|
|||
// There is sometimes a white flash the first time an emulator is started during the
|
||||
// program session and a white single-pixel line will be visible at the bottom of
|
||||
// the screen while the game is loading. But it's at least a tolerable workaround.
|
||||
SDL_GetWindowSize(Renderer::getSDLWindow(), &width, &height);
|
||||
SDL_SetWindowSize(Renderer::getSDLWindow(), width, height - 1);
|
||||
SDL_GetWindowSize(Renderer::getInstance()->getSDLWindow(), &width, &height);
|
||||
SDL_SetWindowSize(Renderer::getInstance()->getSDLWindow(), width, height - 1);
|
||||
SDL_Delay(100);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
Renderer::swapBuffers();
|
||||
Renderer::getInstance()->swapBuffers();
|
||||
|
||||
WaitForSingleObject(pi.hThread, INFINITE);
|
||||
WaitForSingleObject(pi.hProcess, INFINITE);
|
||||
|
||||
SDL_SetWindowSize(Renderer::getSDLWindow(), width, height);
|
||||
SDL_SetWindowSize(Renderer::getInstance()->getSDLWindow(), width, height);
|
||||
}
|
||||
|
||||
// If the return value is false, then something failed.
|
||||
|
|
Loading…
Reference in a new issue