mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[WIN32K]
Only set the surface's bitmap bits when iType == STYPE_BITMAP. Fixes booting with vbox drivers installed. svn path=/trunk/; revision=56482
This commit is contained in:
parent
03c5fb1d08
commit
f0ba219f34
1 changed files with 18 additions and 15 deletions
|
@ -257,25 +257,26 @@ SURFACE_AllocSurface(
|
|||
RtlZeroMemory(pso->pvBits, cjBits);
|
||||
}
|
||||
}
|
||||
|
||||
/* Set pvScan0 and lDelta */
|
||||
if (fjBitmap & BMF_TOPDOWN)
|
||||
{
|
||||
/* Topdown is the normal way */
|
||||
pso->pvScan0 = pso->pvBits;
|
||||
pso->lDelta = cjWidth;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Inversed bitmap (bottom up) */
|
||||
pso->pvScan0 = ((PCHAR)pso->pvBits + pso->cjBits - cjWidth);
|
||||
pso->lDelta = -(LONG)cjWidth;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* There are no bitmap bits */
|
||||
pso->pvBits = NULL;
|
||||
}
|
||||
|
||||
/* Set pvScan0 and lDelta */
|
||||
if (fjBitmap & BMF_TOPDOWN)
|
||||
{
|
||||
/* Topdown is the normal way */
|
||||
pso->pvScan0 = pso->pvBits;
|
||||
pso->lDelta = cjWidth;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Inversed bitmap (bottom up) */
|
||||
pso->pvScan0 = ((PCHAR)pso->pvBits + pso->cjBits - cjWidth);
|
||||
pso->lDelta = -(LONG)cjWidth;
|
||||
pso->pvScan0 = pso->pvBits = NULL;
|
||||
pso->lDelta = 0;
|
||||
}
|
||||
|
||||
/* Assign a default palette and increment its reference count */
|
||||
|
@ -373,6 +374,8 @@ EngCreateDeviceSurface(
|
|||
PSURFACE psurf;
|
||||
HSURF hsurf;
|
||||
|
||||
__debugbreak();
|
||||
|
||||
/* Allocate a surface */
|
||||
psurf = SURFACE_AllocSurface(STYPE_DEVICE,
|
||||
sizl.cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue