mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
[WIN32K]
- 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:
parent
54b14d414e
commit
3b62a1af2a
|
@ -92,9 +92,9 @@ UserInitialize(
|
||||||
HANDLE hPowerRequestEvent,
|
HANDLE hPowerRequestEvent,
|
||||||
HANDLE hMediaRequestEvent)
|
HANDLE hMediaRequestEvent)
|
||||||
{
|
{
|
||||||
static const WORD wPattern55AA[] =
|
static const DWORD wPattern55AA[] = /* 32 bit aligned */
|
||||||
{ 0x5555, 0, 0xaaaa, 0, 0x5555, 0, 0xaaaa, 0,
|
{ 0x55555555, 0xaaaaaaaa, 0x55555555, 0xaaaaaaaa,
|
||||||
0x5555, 0, 0xaaaa, 0, 0x5555, 0, 0xaaaa, 0 };
|
0x55555555, 0xaaaaaaaa, 0x55555555, 0xaaaaaaaa };
|
||||||
HBITMAP hPattern55AABitmap = NULL;
|
HBITMAP hPattern55AABitmap = NULL;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,6 @@ GreCreateBitmapEx(
|
||||||
IN FLONG flags)
|
IN FLONG flags)
|
||||||
{
|
{
|
||||||
PSURFACE psurf;
|
PSURFACE psurf;
|
||||||
SURFOBJ *pso;
|
|
||||||
HBITMAP hbmp;
|
HBITMAP hbmp;
|
||||||
|
|
||||||
/* Verify format */
|
/* Verify format */
|
||||||
|
@ -94,9 +93,8 @@ GreCreateBitmapEx(
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the handle for the bitmap and the surfobj */
|
/* Get the handle for the bitmap */
|
||||||
hbmp = (HBITMAP)psurf->SurfObj.hsurf;
|
hbmp = (HBITMAP)psurf->SurfObj.hsurf;
|
||||||
pso = &psurf->SurfObj;
|
|
||||||
|
|
||||||
/* The infamous RLE hack */
|
/* The infamous RLE hack */
|
||||||
if (iFormat == BMF_4RLE || iFormat == BMF_8RLE)
|
if (iFormat == BMF_4RLE || iFormat == BMF_8RLE)
|
||||||
|
@ -144,6 +142,7 @@ GreCreateBitmapEx(
|
||||||
|
|
||||||
/* Creates a DDB surface,
|
/* Creates a DDB surface,
|
||||||
* as in CreateCompatibleBitmap or CreateBitmap.
|
* as in CreateCompatibleBitmap or CreateBitmap.
|
||||||
|
* Note that each scanline must be 32bit aligned!
|
||||||
*/
|
*/
|
||||||
HBITMAP
|
HBITMAP
|
||||||
APIENTRY
|
APIENTRY
|
||||||
|
|
Loading…
Reference in a new issue