From 39233a036b580a86846ed23c8a9bb95c96412c03 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Mon, 9 Sep 2013 21:23:56 +0200 Subject: [PATCH] Rename constant --- src/eventthread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eventthread.cpp b/src/eventthread.cpp index 0abba61..6d8cd08 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -53,7 +53,7 @@ enum REQUEST_TERMINATION, REQUEST_SETFULLSCREEN, REQUEST_WINRESIZE, - SHOW_MESSAGEBOX + REQUEST_MESSAGEBOX }; EventThread::EventThread() @@ -127,7 +127,7 @@ void EventThread::process(RGSSThreadData &rtData) SDL_SetWindowSize(win, event.window.data1, event.window.data2); break; - case SHOW_MESSAGEBOX : + case REQUEST_MESSAGEBOX : SDL_ShowSimpleMessageBox(event.user.code, rtData.config.game.title.constData(), (const char*) event.user.data1, win); @@ -193,7 +193,7 @@ void EventThread::cleanup() SDL_Event event; while (SDL_PollEvent(&event)) { - if (event.type == SHOW_MESSAGEBOX) + if (event.type == REQUEST_MESSAGEBOX) { free(event.user.data1); } @@ -248,7 +248,7 @@ void EventThread::showMessageBox(const char *body, int flags) SDL_Event event; event.user.code = flags; event.user.data1 = strdup(body); - event.type = SHOW_MESSAGEBOX; + event.type = REQUEST_MESSAGEBOX; SDL_PushEvent(&event); /* Keep repainting screen while box is open */