Fix compilation with -O3 and fix bugs 484 and 505. win32k patches by Tinus.

svn path=/trunk/; revision=13598
This commit is contained in:
Art Yerkes 2005-02-16 16:52:51 +00:00
parent ca22e241e0
commit ed90f1d041
7 changed files with 26 additions and 4 deletions

View file

@ -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;
}

View file

@ -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)

View file

@ -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;
}
/*

View file

@ -290,6 +290,8 @@ ExSetTimerResolution (
)
{
UNIMPLEMENTED;
return 0;
}

View file

@ -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)

View file

@ -199,6 +199,9 @@ IntInitializeDesktopGraphics(VOID)
NtUserAcquireOrReleaseInputOwnership(FALSE);
/* Setup the cursor */
IntLoadDefaultCursors();
return TRUE;
}

View file

@ -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;