1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

* fixed remaining part of #1071 — the screen surface has always to be created in the main thread

* hold events in the queue by value (less ptr jugglery)
This commit is contained in:
Michał W. Urbańczyk
2012-09-11 14:25:19 +00:00
parent d935e87dd8
commit 96a92d0f45
8 changed files with 54 additions and 52 deletions

View File

@ -477,10 +477,7 @@ void CBattleResultWindow::bExitf()
{
if(LOCPLINT->cb->getStartInfo()->mode == StartInfo::DUEL)
{
SDL_Event ev;
ev.type = SDL_QUIT;
ev.user.code = 0;
SDL_PushEvent(&ev);
CGuiHandler::pushSDLEvent(SDL_QUIT);
return;
}