[xorg-commit-diffs] xc/programs/Xserver/hw/xwin winglobals.c,
1.1.2.19, 1.1.2.20 winprocarg.c, 1.1.2.16,
1.1.2.17 winscrinit.c, 1.1.4.1.2.16, 1.1.4.1.2.17
Alexander Gottwald
xorg-commit at pdx.freedesktop.org
Fri Apr 23 06:16:54 EST 2004
Committed by: ago
Update of /cvs/xorg/xc/programs/Xserver/hw/xwin
In directory pdx:/tmp/cvs-serv11274
Modified Files:
Tag: CYGWIN
winglobals.c winprocarg.c winscrinit.c
Log Message:
add commandline option to enable software cursor
use winDebug and winErrorFVerb instead of ErrorF to set explicit loglevels
Index: winglobals.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xwin/Attic/winglobals.c,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -u -d -r1.1.2.19 -r1.1.2.20
--- a/winglobals.c 22 Apr 2004 20:05:34 -0000 1.1.2.19
+++ b/winglobals.c 22 Apr 2004 20:16:51 -0000 1.1.2.20
@@ -64,6 +64,7 @@
HHOOK g_hhookKeyboardLL = NULL;
HWND g_hwndKeyboardFocus = NULL;
Bool g_fNoHelpMessageBox = FALSE;
+Bool g_fSoftwareCursor = FALSE;
/*
Index: winprocarg.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xwin/Attic/winprocarg.c,v
retrieving revision 1.1.2.16
retrieving revision 1.1.2.17
diff -u -d -r1.1.2.16 -r1.1.2.17
--- a/winprocarg.c 17 Apr 2004 19:34:19 -0000 1.1.2.16
+++ b/winprocarg.c 22 Apr 2004 20:16:51 -0000 1.1.2.17
@@ -49,6 +49,7 @@
extern char * g_pszCommandLine;
extern Bool g_fKeyboardHookLL;
extern Bool g_fNoHelpMessageBox;
+extern Bool g_fSoftwareCursor;
/*
@@ -1147,6 +1148,12 @@
return 1;
}
+ if (IS_OPTION ("-swcursor"))
+ {
+ g_fSoftwareCursor = TRUE;
+ return 1;
+ }
+
return 0;
}
Index: winscrinit.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xwin/winscrinit.c,v
retrieving revision 1.1.4.1.2.16
retrieving revision 1.1.4.1.2.17
diff -u -d -r1.1.4.1.2.16 -r1.1.4.1.2.17
--- a/winscrinit.c 10 Apr 2004 06:18:29 -0000 1.1.4.1.2.16
+++ b/winscrinit.c 22 Apr 2004 20:16:51 -0000 1.1.4.1.2.17
@@ -34,6 +34,7 @@
/* $XFree86: xc/programs/Xserver/hw/xwin/winscrinit.c,v 1.27 2003/07/29 21:25:18 dawes Exp $ */
#include "win.h"
+#include "winmsg.h"
#include "safeAlpha.h"
@@ -72,6 +73,7 @@
extern winScreenInfo g_ScreenInfo[];
extern miPointerScreenFuncRec g_winPointerCursorFuncs;
extern int g_iScreenPrivateIndex;
+extern Bool g_fSoftwareCursor;
/*
@@ -106,7 +108,7 @@
HDC hdc;
#if CYGDEBUG || YES
- ErrorF ("winScreenInit - dwWidth: %ld dwHeight: %ld\n",
+ winErrorFVerb (2, "winScreenInit - dwWidth: %ld dwHeight: %ld\n",
pScreenInfo->dwWidth, pScreenInfo->dwHeight);
#endif
@@ -231,8 +233,13 @@
return FALSE;
}
+ if (!g_fSoftwareCursor)
+ winInitCursor(pScreen);
+ else
+ winErrorFVerb(2, "winScreenInit - Using software cursor\n");
+
#if CYGDEBUG || YES
- ErrorF ("winScreenInit - returning\n");
+ winDebug ("winScreenInit - returning\n");
#endif
return TRUE;
@@ -268,7 +275,7 @@
+ winCountBits (pScreenPriv->dwGreenMask)
+ winCountBits (pScreenPriv->dwBlueMask);
- ErrorF ("winFinishScreenInitFB - Masks: %08x %08x %08x\n",
+ winErrorFVerb (2, "winFinishScreenInitFB - Masks: %08x %08x %08x\n",
(unsigned int) pScreenPriv->dwRedMask,
(unsigned int) pScreenPriv->dwGreenMask,
(unsigned int) pScreenPriv->dwBlueMask);
@@ -385,14 +392,14 @@
/* KDrive does miDCInitialize right after miInitializeBackingStore */
/* Setup the cursor routines */
#if CYGDEBUG
- ErrorF ("winFinishScreenInitFB - Calling miDCInitialize ()\n");
+ winDebug ("winFinishScreenInitFB - Calling miDCInitialize ()\n");
#endif
miDCInitialize (pScreen, &g_winPointerCursorFuncs);
/* KDrive does winCreateDefColormap right after miDCInitialize */
/* Create a default colormap */
#if CYGDEBUG
- ErrorF ("winFinishScreenInitFB - Calling winCreateDefColormap ()\n");
+ winDebug ("winFinishScreenInitFB - Calling winCreateDefColormap ()\n");
#endif
if (!winCreateDefColormap (pScreen))
{
@@ -410,7 +417,7 @@
)
{
#if CYGDEBUG
- ErrorF ("winFinishScreenInitFB - Calling shadowInit ()\n");
+ winDebug ("winFinishScreenInitFB - Calling shadowInit ()\n");
#endif
if (!shadowInit (pScreen,
pScreenPriv->pwinShadowUpdate,
@@ -425,11 +432,11 @@
/* Handle multi-window external window manager mode */
if (pScreenInfo->fMWExtWM)
{
- ErrorF ("winScreenInit - MultiWindowExtWM - Calling RootlessInit\n");
+ winDebug ("winScreenInit - MultiWindowExtWM - Calling RootlessInit\n");
RootlessInit(pScreen, &winMWExtWMProcs);
- ErrorF ("winScreenInit - MultiWindowExtWM - RootlessInit returned\n");
+ winDebug ("winScreenInit - MultiWindowExtWM - RootlessInit returned\n");
rootless_CopyBytes_threshold = 0;
rootless_FillBytes_threshold = 0;
@@ -571,7 +578,7 @@
#ifdef XWIN_MULTIWINDOW
#if CYGDEBUG || YES
if (pScreenInfo->fMultiWindow)
- ErrorF ("winFinishScreenInitFB - Calling winInitWM.\n");
+ winDebug ("winFinishScreenInitFB - Calling winInitWM.\n");
#endif
/* Initialize multi window mode */
@@ -594,7 +601,7 @@
pScreenPriv->fBadDepth = FALSE;
#if CYGDEBUG || YES
- ErrorF ("winFinishScreenInitFB - returning\n");
+ winDebug ("winFinishScreenInitFB - returning\n");
#endif
return TRUE;
More information about the xorg-commit-diffs
mailing list