1
0
forked from 0ad/0ad
0ad/source/tools/atlas/AtlasUI/General/AtlasEventLoop.cpp
Ykkrosh 13f2e3ca0c Tried compiling with ICC9 on Linux, which raised various issues:
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
 * Removed some redundant declarations of g_Console.
 * Removed some unnecessary semicolons.
 * Removed some unused variables.
 * Added throw specification to operator new.

This was SVN commit r4698.
2006-12-16 01:01:15 +00:00

43 lines
786 B
C++

#include "stdafx.h"
/* Disabled (and should be removed if it turns out to be unnecessary)
- see MessagePasserImpl.cpp for information
#include "AtlasEventLoop.h"
AtlasEventLoop::AtlasEventLoop()
: m_NeedsPaint(false)
{
}
void AtlasEventLoop::AddMessage(MSG* msg)
{
m_Messages.push_back(msg);
}
void AtlasEventLoop::NeedsPaint()
{
m_NeedsPaint = true;
}
bool AtlasEventLoop::Dispatch()
{
// Process the messages that QueryCallback collected
for (size_t i = 0; i < m_Messages.size(); ++i)
{
MSG* pMsg = m_Messages[i];
wxEventLoop::GetActive()->ProcessMessage(pMsg);
delete pMsg;
}
m_Messages.clear();
if (m_NeedsPaint && wxTheApp && wxTheApp->GetTopWindow())
{
wxTheApp->GetTopWindow()->Refresh();
m_NeedsPaint = false;
}
return wxEventLoop::Dispatch();
}
*/