HANDLE hPowerRequestEvent,
HANDLE hMediaRequestEvent)
{
- static const WORD wPattern55AA[] =
- { 0x5555, 0, 0xaaaa, 0, 0x5555, 0, 0xaaaa, 0,
- 0x5555, 0, 0xaaaa, 0, 0x5555, 0, 0xaaaa, 0 };
+ static const DWORD wPattern55AA[] = /* 32 bit aligned */
+ { 0x55555555, 0xaaaaaaaa, 0x55555555, 0xaaaaaaaa,
+ 0x55555555, 0xaaaaaaaa, 0x55555555, 0xaaaaaaaa };
HBITMAP hPattern55AABitmap = NULL;
NTSTATUS Status;
IN FLONG flags)
{
PSURFACE psurf;
- SURFOBJ *pso;
HBITMAP hbmp;
/* Verify format */
return NULL;
}
- /* Get the handle for the bitmap and the surfobj */
+ /* Get the handle for the bitmap */
hbmp = (HBITMAP)psurf->SurfObj.hsurf;
- pso = &psurf->SurfObj;
/* The infamous RLE hack */
if (iFormat == BMF_4RLE || iFormat == BMF_8RLE)
/* Creates a DDB surface,
* as in CreateCompatibleBitmap or CreateBitmap.
+ * Note that each scanline must be 32bit aligned!
*/
HBITMAP
APIENTRY