fixed: nothing happens on osx 10.6

This commit is contained in:
Nick Bolton 2014-02-17 19:38:26 +00:00
parent 5bb7a9fc7c
commit 75d2c5abf1
11 changed files with 38 additions and 40 deletions

View file

@ -182,18 +182,18 @@ CApp::parseArg(const int& argc, const char* const* argv, int& i)
#endif
#ifdef WINAPI_MSWINDOWS
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
#ifdef WINAPI_MSWINDOWS
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
if (osvi.dwMajorVersion < 6) {
useDragDrop = false;
LOG((CLOG_INFO "ignoring --enable-drag-drop, not supported below vista."));
}
#endif
}
#endif
if (useDragDrop) {
argsBase().m_enableDragDrop = true;
@ -415,7 +415,6 @@ CApp::handleIpcMessage(const CEvent& e, void*)
void
CApp::runEventsLoop(void*)
{
m_events->cacheCurrentEventQueueRef();
m_events->loop();
#if defined(MAC_OS_X_VERSION_10_7)