Fix: Algunas texturas desaparecen al bloquearse la pantalla

This commit is contained in:
2022-11-17 16:04:03 +01:00
parent a304f50e93
commit d33f691743

View File

@@ -92,6 +92,11 @@ void Game::checkEventHandler()
break;
}
if (eventHandler->type == SDL_RENDER_DEVICE_RESET)
{
reLoadTextures();
}
if ((eventHandler->type == SDL_KEYDOWN) and (eventHandler->key.repeat == 0))
{
switch (eventHandler->key.keysym.scancode)