mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
(Windows) Fixed some compiler errors.
This commit is contained in:
parent
6ff0ff1c47
commit
6b095bde05
|
|
@ -12,6 +12,8 @@
|
||||||
#include "Window.h"
|
#include "Window.h"
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
#include "utils/StringUtil.h"
|
#include "utils/StringUtil.h"
|
||||||
|
#include <SDL2/SDL.h>
|
||||||
|
#include <SDL2/SDL_opengl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <SDL2/SDL_events.h>
|
#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
|
// 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
|
// 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.
|
// the screen while the game is loading. But it's at least a tolerable workaround.
|
||||||
SDL_GetWindowSize(Renderer::getSDLWindow(), &width, &height);
|
SDL_GetWindowSize(Renderer::getInstance()->getSDLWindow(), &width, &height);
|
||||||
SDL_SetWindowSize(Renderer::getSDLWindow(), width, height - 1);
|
SDL_SetWindowSize(Renderer::getInstance()->getSDLWindow(), width, height - 1);
|
||||||
SDL_Delay(100);
|
SDL_Delay(100);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
Renderer::swapBuffers();
|
Renderer::getInstance()->swapBuffers();
|
||||||
|
|
||||||
WaitForSingleObject(pi.hThread, INFINITE);
|
WaitForSingleObject(pi.hThread, INFINITE);
|
||||||
WaitForSingleObject(pi.hProcess, 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.
|
// If the return value is false, then something failed.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue