- Add a comment about alignment for GreCreateBitmap
- Make bits really 32bit aligned
- Remove unused variable

svn path=/trunk/; revision=51886
This commit is contained in:
Timo Kreuzer 2011-05-24 16:23:36 +00:00
parent 54b14d414e
commit 3b62a1af2a
2 changed files with 5 additions and 6 deletions

View file

@ -92,9 +92,9 @@ UserInitialize(
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;

View file

@ -80,7 +80,6 @@ GreCreateBitmapEx(
IN FLONG flags)
{
PSURFACE psurf;
SURFOBJ *pso;
HBITMAP hbmp;
/* Verify format */
@ -94,9 +93,8 @@ GreCreateBitmapEx(
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)
@ -144,6 +142,7 @@ GreCreateBitmapEx(
/* Creates a DDB surface,
* as in CreateCompatibleBitmap or CreateBitmap.
* Note that each scanline must be 32bit aligned!
*/
HBITMAP
APIENTRY