mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Accelerate PATCOPY blits.
svn path=/trunk/; revision=3528
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
#include "../../drivers/input/include/mouse.h"
|
||||
#include "objects.h"
|
||||
|
||||
BOOLEAN SafetySwitch = FALSE, SafetySwitch2 = FALSE, MouseEnabled = FALSE;
|
||||
LONG mouse_x, mouse_y;
|
||||
UINT mouse_width = 0, mouse_height = 0;
|
||||
static BOOLEAN SafetySwitch = FALSE;
|
||||
static BOOLEAN SafetySwitch2 = FALSE;
|
||||
static BOOLEAN MouseEnabled = FALSE;
|
||||
static LONG mouse_x, mouse_y;
|
||||
static UINT mouse_width = 0, mouse_height = 0;
|
||||
|
||||
INT MouseSafetyOnDrawStart(PSURFOBJ SurfObj, PSURFGDI SurfGDI, LONG HazardX1, LONG HazardY1, LONG HazardX2, LONG HazardY2)
|
||||
{
|
||||
@@ -148,7 +150,7 @@ VOID EnableMouse(HDC hDisplayDC)
|
||||
MouseRect.left = 0;
|
||||
MouseRect.bottom = 16;
|
||||
MouseRect.right = 16;
|
||||
EngBitBlt(MouseSurf, SurfObj, NULL, NULL, NULL, &MouseRect, &ZeroPoint, NULL, NULL, NULL, 0);
|
||||
EngBitBlt(MouseSurf, SurfObj, NULL, NULL, NULL, &MouseRect, &ZeroPoint, NULL, NULL, NULL, SRCCOPY);
|
||||
SurfGDI->SetPointerShape(SurfObj, MouseSurf, NULL, NULL, 0, 0, 50, 50, &MouseRect, 0);
|
||||
|
||||
mouse_x = 320;
|
||||
|
||||
@@ -86,7 +86,7 @@ BOOL STDCALL W32kBitBlt(HDC hDCDest,
|
||||
|
||||
// Perform the bitblt operation
|
||||
|
||||
Status = EngBitBlt(SurfDest, SurfSrc, NULL, NULL, XlateObj, &DestRect, &SourcePoint, NULL, NULL, NULL, NULL);
|
||||
Status = EngBitBlt(SurfDest, SurfSrc, NULL, NULL, XlateObj, &DestRect, &SourcePoint, NULL, NULL, NULL, ROP);
|
||||
|
||||
if(SurfDestAlloc == TRUE) ExFreePool(SurfDest);
|
||||
if(SurfSrcAlloc == TRUE) ExFreePool(SurfSrc);
|
||||
|
||||
Reference in New Issue
Block a user