mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix compilation with -O3 and fix bugs 484 and 505. win32k patches by Tinus.
svn path=/trunk/; revision=13598
This commit is contained in:
parent
ca22e241e0
commit
ed90f1d041
7 changed files with 26 additions and 4 deletions
|
@ -384,6 +384,8 @@ HalReadDmaCounter(
|
||||||
PADAPTER_OBJECT AdapterObject)
|
PADAPTER_OBJECT AdapterObject)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -682,6 +684,8 @@ STDCALL
|
||||||
KdPortDisableInterrupts()
|
KdPortDisableInterrupts()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -690,6 +694,8 @@ STDCALL
|
||||||
KdPortEnableInterrupts()
|
KdPortEnableInterrupts()
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -709,6 +715,8 @@ KeAcquireSpinLockRaiseToSynch(
|
||||||
PKSPIN_LOCK SpinLock)
|
PKSPIN_LOCK SpinLock)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ static BOOLEAN UdelayCalibrated = FALSE;
|
||||||
* For supported compilers we use inline assembler. For the others,
|
* For supported compilers we use inline assembler. For the others,
|
||||||
* portable plain C.
|
* portable plain C.
|
||||||
*/
|
*/
|
||||||
VOID STDCALL
|
VOID STDCALL __attribute__((noinline))
|
||||||
__KeStallExecutionProcessor(ULONG Loops)
|
__KeStallExecutionProcessor(ULONG Loops)
|
||||||
{
|
{
|
||||||
if (!Loops)
|
if (!Loops)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id:$
|
/* $Id$
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -49,6 +49,8 @@ CcRemapBcb (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -290,6 +290,8 @@ ExSetTimerResolution (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
||||||
RECTL DestRect;
|
RECTL DestRect;
|
||||||
POINTL SrcPoint;
|
POINTL SrcPoint;
|
||||||
SURFOBJ *ColorSurf;
|
SURFOBJ *ColorSurf;
|
||||||
SURFOBJ *MaskSurf;
|
SURFOBJ *MaskSurf = NULL;
|
||||||
|
|
||||||
DestRect.left = max(pt.x, 0);
|
DestRect.left = max(pt.x, 0);
|
||||||
DestRect.top = max(pt.y, 0);
|
DestRect.top = max(pt.y, 0);
|
||||||
|
@ -257,7 +257,9 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
||||||
SrcPoint.x = max(-pt.x, 0);
|
SrcPoint.x = max(-pt.x, 0);
|
||||||
SrcPoint.y = max(-pt.y, 0);
|
SrcPoint.y = max(-pt.y, 0);
|
||||||
|
|
||||||
MaskSurf = EngLockSurface(pgp->MaskSurface);
|
if (pgp->MaskSurface)
|
||||||
|
MaskSurf = EngLockSurface(pgp->MaskSurface);
|
||||||
|
|
||||||
if (MaskSurf != NULL)
|
if (MaskSurf != NULL)
|
||||||
{
|
{
|
||||||
if (pgp->ColorSurface != NULL)
|
if (pgp->ColorSurface != NULL)
|
||||||
|
|
|
@ -199,6 +199,9 @@ IntInitializeDesktopGraphics(VOID)
|
||||||
|
|
||||||
NtUserAcquireOrReleaseInputOwnership(FALSE);
|
NtUserAcquireOrReleaseInputOwnership(FALSE);
|
||||||
|
|
||||||
|
/* Setup the cursor */
|
||||||
|
IntLoadDefaultCursors();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -664,6 +664,11 @@ IntCreatePrimarySurface()
|
||||||
SurfaceRect.bottom = SurfObj->sizlBitmap.cy;
|
SurfaceRect.bottom = SurfObj->sizlBitmap.cy;
|
||||||
/* FIXME - why does EngEraseSurface() sometimes crash?
|
/* FIXME - why does EngEraseSurface() sometimes crash?
|
||||||
EngEraseSurface(SurfObj, &SurfaceRect, 0); */
|
EngEraseSurface(SurfObj, &SurfaceRect, 0); */
|
||||||
|
|
||||||
|
/* Put the pointer in the center of the screen */
|
||||||
|
GDIDEV(SurfObj)->Pointer.Pos.x = (SurfaceRect.right - SurfaceRect.left) / 2;
|
||||||
|
GDIDEV(SurfObj)->Pointer.Pos.y = (SurfaceRect.bottom - SurfaceRect.top) / 2;
|
||||||
|
|
||||||
EngUnlockSurface(SurfObj);
|
EngUnlockSurface(SurfObj);
|
||||||
IntShowDesktop(IntGetActiveDesktop(), SurfSize.cx, SurfSize.cy);
|
IntShowDesktop(IntGetActiveDesktop(), SurfSize.cx, SurfSize.cy);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue