# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1332950600 0 # Node ID 2571d6b2306525125be542cd40ff08745177dea1 # Parent b41ecd439b477aabdb73138fa3402cbe317b27a5 _init_thread() needs to be called after initializing GDI+ on Windows. Was hoping this is why GDI+ drawing wasn't working, but sadly no. diff -r b41ecd439b47 -r 2571d6b23065 win/dw.c --- a/win/dw.c Wed Mar 28 02:47:55 2012 +0000 +++ b/win/dw.c Wed Mar 28 16:03:20 2012 +0000 @@ -3864,7 +3864,6 @@ #ifdef GDIPLUS _gpPen = TlsAlloc(); #endif - _init_thread(); icc.dwSize = sizeof(INITCOMMONCONTROLSEX); icc.dwICC = ICC_WIN95_CLASSES|ICC_DATE_CLASSES; @@ -4013,6 +4012,9 @@ si.SuppressExternalCodecs = FALSE; GdiplusStartup(&gdiplusToken, &si, NULL); #endif + + /* GDI+ Needs to be initialized before calling _init_thread(); */ + _init_thread(); #ifdef AEROGLASS /* Attempt to load the Desktop Window Manager and Theme library */