summaryrefslogtreecommitdiff
path: root/src/smi_accel.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-26 22:49:00 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-26 22:49:00 +0000
commitfb10cf6446aca252321f827cbfca1f099b7f2042 (patch)
treee8af016d0a4e5289a95542db236ec18f86925171 /src/smi_accel.c
parent78af703cb019a60cc93843efcd4889ccb15abd13 (diff)
merge latest (4.3.99.16) from XFree86 (vendor) branch
Diffstat (limited to 'src/smi_accel.c')
-rw-r--r--src/smi_accel.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/smi_accel.c b/src/smi_accel.c
index 1c53060..70e369b 100644
--- a/src/smi_accel.c
+++ b/src/smi_accel.c
@@ -26,7 +26,7 @@ Silicon Motion shall not be used in advertising or otherwise to promote the
sale, use or other dealings in this Software without prior written
authorization from the XFree86 Project and silicon Motion.
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_accel.c,v 1.7 2003/01/12 03:55:49 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_accel.c,v 1.9 2003/10/08 11:13:01 eich Exp $ */
#include "smi.h"
@@ -207,7 +207,7 @@ SMI_AccelInit(ScreenPtr pScreen)
}
else
{
-#if defined(XvExtension) && SMI_USE_VIDEO
+#if SMI_USE_VIDEO
numLines = ((pSmi->FBReserved - pSmi->width * pSmi->Bpp * pSmi->height)
* 25 / 100 + pSmi->width * pSmi->Bpp - 1)
/ (pSmi->width * pSmi->Bpp);
@@ -1096,7 +1096,14 @@ SMI_Polylines(DrawablePtr pDraw, GCPtr pGC, int mode, int npt,
if (box)
{
/* Refresh all polyline segments now. */
- SMI_RefreshArea(pScrn, box, pBox);
+ if (pSmi->Chipset == SMI_COUGAR3DR)
+ {
+ SMI_RefreshArea730(pScrn, box, pBox);
+ }
+ else
+ {
+ SMI_RefreshArea(pScrn, box, pBox);
+ }
}
/* Free the temporary buffer. */