mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-15 00:13:28 +00:00
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks
This commit is contained in:
parent
90f1536dd3
commit
adc7f9a4eb
705 changed files with 30330 additions and 26603 deletions
|
|
@ -30,7 +30,7 @@
|
|||
* Peter Busch
|
||||
* Harold L Hunt II
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xwin/winshadddnl.c,v 1.24 2003/02/12 15:01:38 alanh Exp $ */
|
||||
/* $XFree86: xc/programs/Xserver/hw/xwin/winshadddnl.c,v 1.26 2003/10/02 13:30:11 eich Exp $ */
|
||||
|
||||
#include "win.h"
|
||||
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
#ifdef DEFINE_GUID
|
||||
#undef DEFINE_GUID
|
||||
#define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n GUID_SECT = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
|
||||
#define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) const GUID n GUID_SECT = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
|
||||
#endif /* DEFINE_GUID */
|
||||
|
||||
/*
|
||||
|
|
@ -51,6 +51,8 @@
|
|||
DEFINE_GUID( IID_IDirectDraw4, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 );
|
||||
#endif /* IID_IDirectDraw4 */
|
||||
|
||||
#define FAIL_MSG_MAX_BLT 10
|
||||
|
||||
|
||||
/*
|
||||
* Create the primary surface and attach the clipper.
|
||||
|
|
@ -514,9 +516,24 @@ winShadowUpdateDDNL (ScreenPtr pScreen,
|
|||
NULL);
|
||||
if (FAILED (ddrval))
|
||||
{
|
||||
ErrorF ("winShadowUpdateDDNL - IDirectDrawSurface4_Blt () "
|
||||
"failed: %08x\n",
|
||||
ddrval);
|
||||
static int s_iFailCount = 0;
|
||||
|
||||
if (s_iFailCount < FAIL_MSG_MAX_BLT)
|
||||
{
|
||||
ErrorF ("winShadowUpdateDDNL - IDirectDrawSurface4_Blt () "
|
||||
"failed: %08x\n",
|
||||
ddrval);
|
||||
|
||||
++s_iFailCount;
|
||||
|
||||
if (s_iFailCount == FAIL_MSG_MAX_BLT)
|
||||
{
|
||||
ErrorF ("winShadowUpdateDDNL - IDirectDrawSurface4_Blt "
|
||||
"failure message maximum (%d) reached. No "
|
||||
"more failure messages will be printed.",
|
||||
FAIL_MSG_MAX_BLT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Get a pointer to the next box */
|
||||
|
|
@ -650,6 +667,17 @@ winCloseScreenShadowDDNL (int nIndex, ScreenPtr pScreen)
|
|||
pScreenPriv->pdd = NULL;
|
||||
}
|
||||
|
||||
/* Delete tray icon, if we have one */
|
||||
if (!pScreenInfo->fNoTrayIcon)
|
||||
winDeleteNotifyIcon (pScreenPriv);
|
||||
|
||||
/* Free the exit confirmation dialog box, if it exists */
|
||||
if (g_hDlgExit != NULL)
|
||||
{
|
||||
DestroyWindow (g_hDlgExit);
|
||||
g_hDlgExit = NULL;
|
||||
}
|
||||
|
||||
/* Kill our window */
|
||||
if (pScreenPriv->hwndScreen)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue