1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Remove remaining access to SDL_Events

This commit is contained in:
Ivan Savenko
2023-02-02 20:16:41 +02:00
parent 594b7614cf
commit aab082fd2e
7 changed files with 17 additions and 24 deletions

View File

@ -52,7 +52,7 @@
#include "../../lib/CondSh.h"
#include "../../lib/mapping/CCampaignHandler.h"
#include <SDL_events.h>
#include <SDL_surface.h>
namespace fs = boost::filesystem;
@ -61,9 +61,7 @@ ISelectionScreenInfo * SEL;
static void do_quit()
{
SDL_Event event;
event.quit.type = SDL_QUIT;
SDL_PushEvent(&event);
GH.pushUserEvent(EUserEvent::FORCE_QUIT);
}
CMenuScreen::CMenuScreen(const JsonNode & configNode)