[ros-dev] [ros-diffs] [jgardou] 56951: [WIN32SS/NTGDI] - Do not assume that DC has a valid surface attached in GreExtTextOutW
Timo Kreuzer
timo.kreuzer at web.de
Mon Jul 23 16:31:20 UTC 2012
I don't think it makes sense to draw text into the default bitmap :)
Am 23.07.2012 17:35, schrieb jgardou at svn.reactos.org:
> 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);
>
>
>
More information about the Ros-dev
mailing list