projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always let (deprecated) FindColour() return a new instance of a found colour, because...
[wxWidgets.git]
/
src
/
os2
/
thread.cpp
diff --git
a/src/os2/thread.cpp
b/src/os2/thread.cpp
index c20cdf3b1f9bfdd82f1ad19072901d33c036a44e..c837f5c1a72630ddb39144901b8de0ff2025df3a 100644
(file)
--- a/
src/os2/thread.cpp
+++ b/
src/os2/thread.cpp
@@
-26,6
+26,7
@@
#include <stdio.h>
#include "wx/app.h"
#include <stdio.h>
#include "wx/app.h"
+#include "wx/apptrait.h"
#include "wx/module.h"
#include "wx/intl.h"
#include "wx/utils.h"
#include "wx/module.h"
#include "wx/intl.h"
#include "wx/utils.h"
@@
-409,7
+410,13
@@
void wxThreadInternal::OS2ThreadStart(
}
else // do run thread
{
}
else // do run thread
{
+ wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
+ unsigned long ulHab;
+ if (traits)
+ traits->InitializeGui(ulHab);
dwRet = (DWORD)pThread->Entry();
dwRet = (DWORD)pThread->Entry();
+ if (traits)
+ traits->TerminateGui(ulHab);
// enter m_critsect before changing the thread state
pThread->m_critsect.Enter();
// enter m_critsect before changing the thread state
pThread->m_critsect.Enter();