1 #undef WIN32_LEAN_AND_MEAN
5 /* FIXME: Surely we should just have one include file that includes all of these.. */
6 #include <win32k/bitmaps.h>
7 #include <win32k/coord.h>
8 #include <win32k/driver.h>
10 #include <win32k/print.h>
11 #include <win32k/region.h>
12 #include <win32k/gdiobj.h>
13 #include <win32k/pen.h>
14 #include "../eng/objects.h"
17 #include <win32k/debug1.h>
20 PBRUSHOBJ PenToBrushObj(PDC dc, PENOBJ *pen)
27 BrushObj = ExAllocatePool(NonPagedPool, sizeof(BRUSHOBJ));
28 BrushObj->iSolidColor = pen->logpen.lopnColor;
33 HBITMAP BitmapToSurf(PBITMAPOBJ BitmapObj)
37 if (NULL != BitmapObj->dib)
39 BitmapHandle = EngCreateBitmap(BitmapObj->size, BitmapObj->dib->dsBm.bmWidthBytes,
40 BitmapFormat(BitmapObj->dib->dsBm.bmBitsPixel, BI_RGB),
41 0, BitmapObj->dib->dsBm.bmBits);
45 BitmapHandle = EngCreateBitmap(BitmapObj->size, BitmapObj->bitmap.bmWidthBytes,
46 BitmapFormat(BitmapObj->bitmap.bmBitsPixel, BI_RGB),
47 0, BitmapObj->bitmap.bmBits);