Author: fireball
Date: Tue Aug 4 14:20:45 2009
New Revision: 42380
URL:
http://svn.reactos.org/svn/reactos?rev=42380&view=rev
Log:
- Use a precreated stock bitmap.
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win3…
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c [iso-8859-1] Tue Aug 4
14:20:45 2009
@@ -77,8 +77,6 @@
HGDIOBJ hNewDC;
PDC pNewDC;
XFORM xformWorld2Vport, xformVport2World;
- HBITMAP hStockBitmap;
- SIZEL slSize;
/* TESTING: Create primary surface */
if (!PrimarySurface.pSurface && !IntCreatePrimarySurface())
@@ -118,9 +116,7 @@
if (dc->dwType == OBJ_MEMDC)
{
DPRINT("Creating a memory DC %x\n", hNewDC);
- slSize.cx = 1; slSize.cy = 1;
- hStockBitmap = GreCreateBitmap(slSize, 1, 1, 0, NULL);
- pNewDC->pBitmap = SURFACE_ShareLock(hStockBitmap);
+ pNewDC->pBitmap = SURFACE_ShareLock(hStockBmp);
/* Set DC rectangles */
pNewDC->rcDcRect.left = 0; pNewDC->rcDcRect.top = 0;