hw/xwin: Fix unused-but-set-variable warning in winHotKeyAltTabPrimaryDD()
/jhbuild/checkout/xorg/xserver/hw/xwin/winpfbdd.c: In function ‘winHotKeyAltTabPrimaryDD’: /jhbuild/checkout/xorg/xserver/hw/xwin/winpfbdd.c:518:20: error: variable ‘rcSrc’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
7dae1e59ce
commit
fbf819c24d
|
@ -514,8 +514,6 @@ static Bool
|
|||
winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
||||
{
|
||||
winScreenPriv(pScreen);
|
||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
RECT rcClient, rcSrc;
|
||||
HRESULT ddrval = DD_OK;
|
||||
|
||||
ErrorF("\nwinHotKeyAltTabPrimaryDD\n\n");
|
||||
|
@ -527,11 +525,6 @@ winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
|||
if (pScreenPriv->pddsPrimary == NULL || pScreenPriv->pddsOffscreen == NULL)
|
||||
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? */
|
||||
ddrval = IDirectDrawSurface2_IsLost(pScreenPriv->pddsPrimary);
|
||||
if (ddrval == DD_OK) {
|
||||
|
@ -541,12 +534,6 @@ winHotKeyAltTabPrimaryDD(ScreenPtr pScreen)
|
|||
"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 */
|
||||
ddrval = IDirectDrawSurface2_Blt(pScreenPriv->pddsOffscreen, NULL, /* should be rcDest */
|
||||
pScreenPriv->pddsPrimary,
|
||||
|
|
Loading…
Reference in New Issue