projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use explicit menu item background if it's given under MSW.
[wxWidgets.git]
/
src
/
dfb
/
app.cpp
diff --git
a/src/dfb/app.cpp
b/src/dfb/app.cpp
index 931a9bfbe3345fddc18b01e453d829c04b02c91b..0cc0506b3ff38401f0ead7899cb81a551b0f6ebc 100644
(file)
--- a/
src/dfb/app.cpp
+++ b/
src/dfb/app.cpp
@@
-148,17
+148,9
@@
bool wxApp::SetDisplayMode(const wxVideoMode& mode)
void wxApp::WakeUpIdle()
{
void wxApp::WakeUpIdle()
{
-#if wxUSE_THREADS
- if (!wxThread::IsMain())
- wxMutexGuiEnter();
-#endif
-
+ // we don't need a mutex here, since we use the wxConsoleEventLoop
+ // and wxConsoleEventLoop::WakeUp() is thread-safe
wxEventLoopBase * const loop = wxEventLoop::GetActive();
if ( loop )
loop->WakeUp();
wxEventLoopBase * const loop = wxEventLoop::GetActive();
if ( loop )
loop->WakeUp();
-
-#if wxUSE_THREADS
- if (!wxThread::IsMain())
- wxMutexGuiLeave();
-#endif
}
}