diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-09-19 18:00:16 -0300 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-09-19 18:00:16 -0300 |
commit | 9ae840a358959615020fa4adb76c1487231927f3 (patch) | |
tree | b8be2243288eda87cd738ce3a8d59dd3644f8cab /src/smi_501.h | |
parent | f4339a6a7aa077cb355dd23b77ea568ad2a481e3 (diff) |
Add MSOC palette support to run at 8 bpp.
Colors should be correctly set, but most output using Render is not
properly drawn, i.e. anti aliased fonts, etc. Need to investigate
further, but it should be a general problem, not exclusive to the
driver.
Diffstat (limited to 'src/smi_501.h')
-rw-r--r-- | src/smi_501.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smi_501.h b/src/smi_501.h index 9ade949..8e1719d 100644 --- a/src/smi_501.h +++ b/src/smi_501.h @@ -699,6 +699,8 @@ typedef struct _MSOCRegRec { } crt_vsync; } MSOCRegRec, *MSOCRegPtr; +#define PANEL_PALETTE 0x080400 +#define CRT_PALETTE 0x080c00 /* In Kb - documentation says it is 64Kb... */ #define FB_RESERVE4USB 512 @@ -710,5 +712,7 @@ void SMI501_Save(ScrnInfoPtr pScrn); void SMI501_DisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode, int flags); Bool SMI501_ModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode); +void SMI501_LoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, + LOCO *colors, VisualPtr pVisual); #endif /*_SMI_501_H*/ |