From 931395cad53aaf20d506896920be9567f033b9eb Mon Sep 17 00:00:00 2001 From: Kean Johnson Date: Fri, 10 Jun 2005 06:54:05 +0000 Subject: SCO port update for SCO OpenServer 5 and UnixWare 7. A few general cleanups and bugs not specifically related to the port fixed along the way. --- src/savage_cursor.c | 2 +- src/savage_dga.c | 9 ++++++--- src/savage_shadow.c | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/savage_cursor.c b/src/savage_cursor.c index ff0136f..248b979 100644 --- a/src/savage_cursor.c +++ b/src/savage_cursor.c @@ -186,7 +186,7 @@ SavageLoadCursorImage( * loading the cursor. */ volatile unsigned int i = ALT_STATUS_WORD0; - (void)i; /* Not to be optimised out */ + (void)i++; /* Not to be optimised out */ } } diff --git a/src/savage_dga.c b/src/savage_dga.c index 50a36b0..55f057e 100644 --- a/src/savage_dga.c +++ b/src/savage_dga.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/savage/savage_dga.c,v 1.3 2001/05/18 23:35:32 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/savage/savage_dga.c,v 1.6 2003/01/18 15:22:29 eich Exp $ */ /* Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. @@ -275,7 +275,7 @@ Savage_SetMode( psav->DGAactive = FALSE; SavageSwitchMode(index, pScrn->currentMode, 0); - if( psav->hwcursor ) + if( psav->hwcursor && psav->hwc_on ) SavageShowCursor(pScrn); } else { Bool holdBIOS = psav->UseBIOS; @@ -289,8 +289,11 @@ Savage_SetMode( pMode->bitsPerPixel, pMode->depth); #endif - if( psav->hwcursor ) + if( psav->hwcursor && psav->hwc_on) { SavageHideCursor(pScrn); + psav->hwc_on = TRUE; /* save for later restauration */ + } + if(!psav->DGAactive) { /* save the old parameters */ OldDisplayWidth[index] = pScrn->displayWidth; diff --git a/src/savage_shadow.c b/src/savage_shadow.c index 00a5120..2fb0e91 100644 --- a/src/savage_shadow.c +++ b/src/savage_shadow.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/savage/savage_shadow.c,v 1.2 2002/05/14 20:19:52 alanh Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/s3virge/s3v_shadow.c,v 1.3 2000/03/31 20:13:33 dawes Exp $ */ /* Copyright (c) 1999,2000 The XFree86 Project Inc. -- cgit v1.2.3