I don't think it makes sense to draw text into the default bitmap :)

Am 23.07.2012 17:35, schrieb [email protected]:
Author: jgardou
Date: Mon Jul 23 15:35:42 2012
New Revision: 56951

URL: http://svn.reactos.org/svn/reactos?rev=56951&view=rev
Log:
[WIN32SS/NTGDI]
- Do not assume that DC has a valid surface attached in GreExtTextOutW

Modified:
     trunk/reactos/win32ss/gdi/ntgdi/freetype.c

Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype.c?rev=56951&r1=56950&r2=56951&view=diff
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] Mon Jul 23 15:35:42 
2012
@@ -3391,6 +3391,7 @@
      DC_vPrepareDCsForBlit(dc, DummyRect, NULL, DummyRect);
psurf = dc->dclevel.pSurface ;
+    if(!psurf) psurf = psurfDefaultBitmap;
      SurfObj = &psurf->SurfObj ;
EXLATEOBJ_vInitialize(&exloRGB2Dst, &gpalRGB, psurf->ppal, 0, 0, 0);





_______________________________________________
Ros-dev mailing list
[email protected]
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to