summaryrefslogtreecommitdiff
path: root/src/regsmi.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-11 15:06:15 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-11 15:06:15 -0200
commitcaac648932df69419b8f86c5793a6b33f5997099 (patch)
treea6d5f4e934e1c8dc9319edf4802813d47a7d29fc /src/regsmi.h
parent61dd360a30c8e530185bc71b134c287ab1cdde2c (diff)
Implement an argb cursor using the alpha layer.
The code is <hash>ifdef'ed out by <hash>if SMI_CURSOR_ALPHA_PLANE because the smi 502 hardware is buggy, but it appears to have worked for some older hardware revisions (by looking at code available at ftp.siliconmotion.com.tw). Keeping it at least for now, as it serves as a simple way to reproduce the problems described in smi.h.
Diffstat (limited to 'src/regsmi.h')
-rw-r--r--src/regsmi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/regsmi.h b/src/regsmi.h
index 35344c3..031e448 100644
--- a/src/regsmi.h
+++ b/src/regsmi.h
@@ -304,6 +304,11 @@ VGAOUT8(SMIPtr pSmi, int port, CARD8 data)
#define SMI501_MAX_CURSOR 64
#define SMILYNX_CURSOR_SIZE 1024
#define SMI501_CURSOR_SIZE 2048
+#if SMI_CURSOR_ALPHA_PLANE
+/* Stored in either 4:4:4:4 or 5:6:5 format */
+# define SMI501_ARGB_CURSOR_SIZE \
+ (SMI501_MAX_CURSOR * SMI501_MAX_CURSOR * 2)
+#endif
/* HWCursor definitons for Panel AND CRT */
#define SMI501_MASK_HWCENABLE 0x80000000