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)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -682,6 +684,8 @@ STDCALL
|
|||
KdPortDisableInterrupts()
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
@ -690,6 +694,8 @@ STDCALL
|
|||
KdPortEnableInterrupts()
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
@ -709,6 +715,8 @@ KeAcquireSpinLockRaiseToSynch(
|
|||
PKSPIN_LOCK SpinLock)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ static BOOLEAN UdelayCalibrated = FALSE;
|
|||
* For supported compilers we use inline assembler. For the others,
|
||||
* portable plain C.
|
||||
*/
|
||||
VOID STDCALL
|
||||
VOID STDCALL __attribute__((noinline))
|
||||
__KeStallExecutionProcessor(ULONG Loops)
|
||||
{
|
||||
if (!Loops)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id:$
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -49,6 +49,8 @@ CcRemapBcb (
|
|||
)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -290,6 +290,8 @@ ExSetTimerResolution (
|
|||
)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -243,7 +243,7 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
|||
RECTL DestRect;
|
||||
POINTL SrcPoint;
|
||||
SURFOBJ *ColorSurf;
|
||||
SURFOBJ *MaskSurf;
|
||||
SURFOBJ *MaskSurf = NULL;
|
||||
|
||||
DestRect.left = max(pt.x, 0);
|
||||
DestRect.top = max(pt.y, 0);
|
||||
|
@ -257,7 +257,9 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
|||
SrcPoint.x = max(-pt.x, 0);
|
||||
SrcPoint.y = max(-pt.y, 0);
|
||||
|
||||
MaskSurf = EngLockSurface(pgp->MaskSurface);
|
||||
if (pgp->MaskSurface)
|
||||
MaskSurf = EngLockSurface(pgp->MaskSurface);
|
||||
|
||||
if (MaskSurf != NULL)
|
||||
{
|
||||
if (pgp->ColorSurface != NULL)
|
||||
|
|
|
@ -199,6 +199,9 @@ IntInitializeDesktopGraphics(VOID)
|
|||
|
||||
NtUserAcquireOrReleaseInputOwnership(FALSE);
|
||||
|
||||
/* Setup the cursor */
|
||||
IntLoadDefaultCursors();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -664,6 +664,11 @@ IntCreatePrimarySurface()
|
|||
SurfaceRect.bottom = SurfObj->sizlBitmap.cy;
|
||||
/* FIXME - why does EngEraseSurface() sometimes crash?
|
||||
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);
|
||||
IntShowDesktop(IntGetActiveDesktop(), SurfSize.cx, SurfSize.cy);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue