Merge remote-tracking branch 'jturney/unused-but-set-variable-warning-fix'
This commit is contained in:
commit
1e6cf8ec20
|
@ -83,7 +83,7 @@ static int
|
||||||
void *
|
void *
|
||||||
winClipboardProc(void *pvNotUsed)
|
winClipboardProc(void *pvNotUsed)
|
||||||
{
|
{
|
||||||
Atom atomClipboard, atomClipboardManager;
|
Atom atomClipboard;
|
||||||
int iReturn;
|
int iReturn;
|
||||||
HWND hwnd = NULL;
|
HWND hwnd = NULL;
|
||||||
int iConnectionNumber = 0;
|
int iConnectionNumber = 0;
|
||||||
|
@ -206,9 +206,8 @@ winClipboardProc(void *pvNotUsed)
|
||||||
iMaxDescriptor = iConnectionNumber + 1;
|
iMaxDescriptor = iConnectionNumber + 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Create atoms */
|
/* Create atom */
|
||||||
atomClipboard = XInternAtom(pDisplay, "CLIPBOARD", False);
|
atomClipboard = XInternAtom(pDisplay, "CLIPBOARD", False);
|
||||||
atomClipboardManager = XInternAtom(pDisplay, "CLIPBOARD_MANAGER", False);
|
|
||||||
|
|
||||||
/* Create a messaging window */
|
/* Create a messaging window */
|
||||||
iWindow = XCreateSimpleWindow(pDisplay,
|
iWindow = XCreateSimpleWindow(pDisplay,
|
||||||
|
|
|
@ -431,7 +431,6 @@ winChangeDepthDlgProc(HWND hwndDialog, UINT message,
|
||||||
{
|
{
|
||||||
static winPrivScreenPtr s_pScreenPriv = NULL;
|
static winPrivScreenPtr s_pScreenPriv = NULL;
|
||||||
static winScreenInfo *s_pScreenInfo = NULL;
|
static winScreenInfo *s_pScreenInfo = NULL;
|
||||||
static ScreenPtr s_pScreen = NULL;
|
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winChangeDepthDlgProc\n");
|
winDebug("winChangeDepthDlgProc\n");
|
||||||
|
@ -447,12 +446,11 @@ winChangeDepthDlgProc(HWND hwndDialog, UINT message,
|
||||||
/* Store pointers to private structures for future use */
|
/* Store pointers to private structures for future use */
|
||||||
s_pScreenPriv = (winPrivScreenPtr) lParam;
|
s_pScreenPriv = (winPrivScreenPtr) lParam;
|
||||||
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
||||||
s_pScreen = s_pScreenInfo->pScreen;
|
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winChangeDepthDlgProc - WM_INITDIALOG - s_pScreenPriv: %08x, "
|
winDebug("winChangeDepthDlgProc - WM_INITDIALOG - s_pScreenPriv: %08x, "
|
||||||
"s_pScreenInfo: %08x, s_pScreen: %08x\n",
|
"s_pScreenInfo: %08x\n",
|
||||||
s_pScreenPriv, s_pScreenInfo, s_pScreen);
|
s_pScreenPriv, s_pScreenInfo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
|
@ -562,8 +560,6 @@ static wBOOL CALLBACK
|
||||||
winAboutDlgProc(HWND hwndDialog, UINT message, WPARAM wParam, LPARAM lParam)
|
winAboutDlgProc(HWND hwndDialog, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
static winPrivScreenPtr s_pScreenPriv = NULL;
|
static winPrivScreenPtr s_pScreenPriv = NULL;
|
||||||
static winScreenInfo *s_pScreenInfo = NULL;
|
|
||||||
static ScreenPtr s_pScreen = NULL;
|
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winAboutDlgProc\n");
|
winDebug("winAboutDlgProc\n");
|
||||||
|
@ -576,10 +572,8 @@ winAboutDlgProc(HWND hwndDialog, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
winDebug("winAboutDlgProc - WM_INITDIALOG\n");
|
winDebug("winAboutDlgProc - WM_INITDIALOG\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Store pointers to private structures for future use */
|
/* Store pointer to private structure for future use */
|
||||||
s_pScreenPriv = (winPrivScreenPtr) lParam;
|
s_pScreenPriv = (winPrivScreenPtr) lParam;
|
||||||
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
|
||||||
s_pScreen = s_pScreenInfo->pScreen;
|
|
||||||
|
|
||||||
winInitDialog(hwndDialog);
|
winInitDialog(hwndDialog);
|
||||||
|
|
||||||
|
|
|
@ -328,7 +328,6 @@ winIsFakeCtrl_L(UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
Bool fReturn;
|
Bool fReturn;
|
||||||
|
|
||||||
static Bool lastWasControlL = FALSE;
|
static Bool lastWasControlL = FALSE;
|
||||||
static UINT lastMessage;
|
|
||||||
static LONG lastTime;
|
static LONG lastTime;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -352,7 +351,6 @@ winIsFakeCtrl_L(UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
if (!fReturn) {
|
if (!fReturn) {
|
||||||
lastWasControlL = TRUE;
|
lastWasControlL = TRUE;
|
||||||
lastMessage = message;
|
|
||||||
lastTime = lTime;
|
lastTime = lTime;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -808,7 +808,6 @@ winMinimizeWindow(Window id)
|
||||||
HWND hWnd;
|
HWND hWnd;
|
||||||
ScreenPtr pScreen = NULL;
|
ScreenPtr pScreen = NULL;
|
||||||
winPrivScreenPtr pScreenPriv = NULL;
|
winPrivScreenPtr pScreenPriv = NULL;
|
||||||
winScreenInfo *pScreenInfo = NULL;
|
|
||||||
|
|
||||||
#if CYGWINDOWING_DEBUG
|
#if CYGWINDOWING_DEBUG
|
||||||
ErrorF("winMinimizeWindow\n");
|
ErrorF("winMinimizeWindow\n");
|
||||||
|
@ -824,11 +823,9 @@ winMinimizeWindow(Window id)
|
||||||
pScreen = pWin->drawable.pScreen;
|
pScreen = pWin->drawable.pScreen;
|
||||||
if (pScreen)
|
if (pScreen)
|
||||||
pScreenPriv = winGetScreenPriv(pScreen);
|
pScreenPriv = winGetScreenPriv(pScreen);
|
||||||
if (pScreenPriv)
|
|
||||||
pScreenInfo = pScreenPriv->pScreenInfo;
|
|
||||||
|
|
||||||
#ifdef XWIN_MULTIWINDOWEXTWM
|
#ifdef XWIN_MULTIWINDOWEXTWM
|
||||||
if (pScreenPriv && pScreenInfo->fInternalWM) {
|
if (pScreenPriv && pScreenPriv->pScreenInfo->fInternalWM) {
|
||||||
pRLWinPriv =
|
pRLWinPriv =
|
||||||
(win32RootlessWindowPtr) RootlessFrameForWindow(pWin, FALSE);
|
(win32RootlessWindowPtr) RootlessFrameForWindow(pWin, FALSE);
|
||||||
hWnd = pRLWinPriv->hWnd;
|
hWnd = pRLWinPriv->hWnd;
|
||||||
|
|
|
@ -514,8 +514,6 @@ static Bool
|
||||||
winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
|
||||||
RECT rcClient, rcSrc;
|
|
||||||
HRESULT ddrval = DD_OK;
|
HRESULT ddrval = DD_OK;
|
||||||
|
|
||||||
ErrorF("\nwinHotKeyAltTabPrimaryDD\n\n");
|
ErrorF("\nwinHotKeyAltTabPrimaryDD\n\n");
|
||||||
|
@ -527,11 +525,6 @@ winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
||||||
if (pScreenPriv->pddsPrimary == NULL || pScreenPriv->pddsOffscreen == NULL)
|
if (pScreenPriv->pddsPrimary == NULL || pScreenPriv->pddsOffscreen == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Get client area in screen coords */
|
|
||||||
GetClientRect(pScreenPriv->hwndScreen, &rcClient);
|
|
||||||
MapWindowPoints(pScreenPriv->hwndScreen,
|
|
||||||
HWND_DESKTOP, (LPPOINT) &rcClient, 2);
|
|
||||||
|
|
||||||
/* Did we loose the primary surface? */
|
/* Did we loose the primary surface? */
|
||||||
ddrval = IDirectDrawSurface2_IsLost(pScreenPriv->pddsPrimary);
|
ddrval = IDirectDrawSurface2_IsLost(pScreenPriv->pddsPrimary);
|
||||||
if (ddrval == DD_OK) {
|
if (ddrval == DD_OK) {
|
||||||
|
@ -541,12 +534,6 @@ winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
||||||
"surface\n");
|
"surface\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup a source rectangle */
|
|
||||||
rcSrc.left = 0;
|
|
||||||
rcSrc.top = 0;
|
|
||||||
rcSrc.right = pScreenInfo->dwWidth;
|
|
||||||
rcSrc.bottom = pScreenInfo->dwHeight;
|
|
||||||
|
|
||||||
/* Blit the primary surface to the offscreen surface */
|
/* Blit the primary surface to the offscreen surface */
|
||||||
ddrval = IDirectDrawSurface2_Blt(pScreenPriv->pddsOffscreen, NULL, /* should be rcDest */
|
ddrval = IDirectDrawSurface2_Blt(pScreenPriv->pddsOffscreen, NULL, /* should be rcDest */
|
||||||
pScreenPriv->pddsPrimary,
|
pScreenPriv->pddsPrimary,
|
||||||
|
|
|
@ -259,7 +259,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||||
VisualPtr pVisual = NULL;
|
VisualPtr pVisual = NULL;
|
||||||
char *pbits = NULL;
|
|
||||||
|
|
||||||
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
#if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
|
||||||
int iReturn;
|
int iReturn;
|
||||||
|
@ -293,9 +292,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup a local variable to point to the framebuffer */
|
|
||||||
pbits = pScreenInfo->pfb;
|
|
||||||
|
|
||||||
/* Apparently we need this for the render extension */
|
/* Apparently we need this for the render extension */
|
||||||
miSetPixmapDepths();
|
miSetPixmapDepths();
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,6 @@ winMWExtWMUpdateWindowDecoration(win32RootlessWindowPtr pRLWinPriv,
|
||||||
{
|
{
|
||||||
Bool fDecorate = FALSE;
|
Bool fDecorate = FALSE;
|
||||||
DWORD dwExStyle = 0;
|
DWORD dwExStyle = 0;
|
||||||
DWORD dwStyle = 0;
|
|
||||||
WINDOWPLACEMENT wndPlace;
|
WINDOWPLACEMENT wndPlace;
|
||||||
UINT showCmd = 0;
|
UINT showCmd = 0;
|
||||||
|
|
||||||
|
@ -217,9 +216,8 @@ winMWExtWMUpdateWindowDecoration(win32RootlessWindowPtr pRLWinPriv,
|
||||||
winDebug("winMWExtWMUpdateWindowDecoration %08x %s\n",
|
winDebug("winMWExtWMUpdateWindowDecoration %08x %s\n",
|
||||||
(int) pRLWinPriv, fDecorate ? "Decorate" : "Bare");
|
(int) pRLWinPriv, fDecorate ? "Decorate" : "Bare");
|
||||||
|
|
||||||
/* Get the standard and extended window style information */
|
/* Get the extended window style information */
|
||||||
dwExStyle = GetWindowLongPtr(pRLWinPriv->hWnd, GWL_EXSTYLE);
|
dwExStyle = GetWindowLongPtr(pRLWinPriv->hWnd, GWL_EXSTYLE);
|
||||||
dwStyle = GetWindowLongPtr(pRLWinPriv->hWnd, GWL_STYLE);
|
|
||||||
|
|
||||||
if (fDecorate) {
|
if (fDecorate) {
|
||||||
RECT rcNew;
|
RECT rcNew;
|
||||||
|
|
|
@ -128,7 +128,6 @@ winCopyWindowNativeGDI(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||||
BoxPtr pBox;
|
BoxPtr pBox;
|
||||||
int dx, dy;
|
int dx, dy;
|
||||||
int i, nbox;
|
int i, nbox;
|
||||||
WindowPtr pwinRoot;
|
|
||||||
BoxPtr pBoxDst;
|
BoxPtr pBoxDst;
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
|
|
||||||
|
@ -138,9 +137,6 @@ winCopyWindowNativeGDI(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||||
ErrorF("winCopyWindow\n");
|
ErrorF("winCopyWindow\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get a pointer to the root window */
|
|
||||||
pwinRoot = pWin->drawable.pScreen->root;
|
|
||||||
|
|
||||||
/* Create a region for the destination */
|
/* Create a region for the destination */
|
||||||
prgnDst = RegionCreate(NULL, 1);
|
prgnDst = RegionCreate(NULL, 1);
|
||||||
|
|
||||||
|
|
|
@ -66,18 +66,6 @@ typedef struct _WMEvent {
|
||||||
unsigned int mask;
|
unsigned int mask;
|
||||||
} WMEventRec;
|
} WMEventRec;
|
||||||
|
|
||||||
static inline BoxRec
|
|
||||||
make_box(int x, int y, int w, int h)
|
|
||||||
{
|
|
||||||
BoxRec r;
|
|
||||||
|
|
||||||
r.x1 = x;
|
|
||||||
r.y1 = y;
|
|
||||||
r.x2 = x + w;
|
|
||||||
r.y2 = y + h;
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcWindowsWMQueryVersion(ClientPtr client)
|
ProcWindowsWMQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -319,7 +307,6 @@ static int
|
||||||
ProcWindowsWMFrameGetRect(ClientPtr client)
|
ProcWindowsWMFrameGetRect(ClientPtr client)
|
||||||
{
|
{
|
||||||
xWindowsWMFrameGetRectReply rep;
|
xWindowsWMFrameGetRectReply rep;
|
||||||
BoxRec ir;
|
|
||||||
RECT rcNew;
|
RECT rcNew;
|
||||||
|
|
||||||
REQUEST(xWindowsWMFrameGetRectReq);
|
REQUEST(xWindowsWMFrameGetRectReq);
|
||||||
|
@ -334,8 +321,6 @@ ProcWindowsWMFrameGetRect(ClientPtr client)
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
|
|
||||||
ir = make_box(stuff->ix, stuff->iy, stuff->iw, stuff->ih);
|
|
||||||
|
|
||||||
if (stuff->frame_rect != 0) {
|
if (stuff->frame_rect != 0) {
|
||||||
ErrorF("ProcWindowsWMFrameGetRect - stuff->frame_rect != 0\n");
|
ErrorF("ProcWindowsWMFrameGetRect - stuff->frame_rect != 0\n");
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
|
|
@ -62,7 +62,6 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
static winScreenInfo *s_pScreenInfo = NULL;
|
static winScreenInfo *s_pScreenInfo = NULL;
|
||||||
static ScreenPtr s_pScreen = NULL;
|
static ScreenPtr s_pScreen = NULL;
|
||||||
static HWND s_hwndLastPrivates = NULL;
|
static HWND s_hwndLastPrivates = NULL;
|
||||||
static HINSTANCE s_hInstance;
|
|
||||||
static Bool s_fTracking = FALSE;
|
static Bool s_fTracking = FALSE;
|
||||||
static unsigned long s_ulServerGeneration = 0;
|
static unsigned long s_ulServerGeneration = 0;
|
||||||
static UINT s_uTaskbarRestart = 0;
|
static UINT s_uTaskbarRestart = 0;
|
||||||
|
@ -117,7 +116,6 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
* areas of our display window.
|
* areas of our display window.
|
||||||
*/
|
*/
|
||||||
s_pScreenPriv = ((LPCREATESTRUCT) lParam)->lpCreateParams;
|
s_pScreenPriv = ((LPCREATESTRUCT) lParam)->lpCreateParams;
|
||||||
s_hInstance = ((LPCREATESTRUCT) lParam)->hInstance;
|
|
||||||
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
s_pScreenInfo = s_pScreenPriv->pScreenInfo;
|
||||||
s_pScreen = s_pScreenInfo->pScreen;
|
s_pScreen = s_pScreenInfo->pScreen;
|
||||||
s_hwndLastPrivates = hwnd;
|
s_hwndLastPrivates = hwnd;
|
||||||
|
|
Loading…
Reference in New Issue