summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-13 20:01:18 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-13 20:01:18 -0200
commitffb4be763ced82158a3a1d2e06fb0e81815e057b (patch)
treedfe219058f3409ee4fe5c0956912fc61c9bbda11
parent6b6da04d566ec5b9d723c9f28791c604f76526dd (diff)
Don't restore alpha registers, as they are not being modified.
Restoring the registers "without need" caused some instability, with random locks.
-rw-r--r--src/smi_501.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/smi_501.c b/src/smi_501.c
index 6350f65..f1a5804 100644
--- a/src/smi_501.c
+++ b/src/smi_501.c
@@ -356,7 +356,9 @@ SMI501_WriteMode(ScrnInfoPtr pScrn, MSOCRegPtr restore)
SMI501_WriteMode_common(pScrn, restore);
SMI501_WriteMode_lcd(pScrn, restore);
SMI501_WriteMode_crt(pScrn, restore);
+#if SMI_CURSOR_ALPHA_PLANE
SMI501_WriteMode_alpha(pScrn, restore);
+#endif
}
void