winedos: VGA_SetQuadPalette() is unused so remove it.
Francois Gouget
fgouget at free.fr
Wed Jan 7 05:34:45 CST 2009
---
The only place where VGA_SetQuadPalette() was being used is in
#ifdef-out code in gdi32 (I sent a patch to remove that code). It cannot
be used from there anyway since it would be a dll separation violation.
dlls/winedos/vga.c | 15 ---------------
dlls/winedos/vga.h | 1 -
2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/dlls/winedos/vga.c b/dlls/winedos/vga.c
index f4cf276..6f71cf5 100644
--- a/dlls/winedos/vga.c
+++ b/dlls/winedos/vga.c
@@ -929,21 +929,6 @@ void VGA_Get16Palette(char *Table)
memcpy( vga_16_palette, Table, 17 ); /* copy the entries into the table */
}
-void VGA_SetQuadPalette(RGBQUAD*color,int start,int len)
-{
- PALETTEENTRY pal[256];
- int c;
-
- if (!lpddraw) return;
- for (c=0; c<len; c++) {
- pal[c].peRed =color[c].rgbRed;
- pal[c].peGreen=color[c].rgbGreen;
- pal[c].peBlue =color[c].rgbBlue;
- pal[c].peFlags=0;
- }
- IDirectDrawPalette_SetEntries(lpddpal,0,start,len,pal);
-}
-
static LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth)
{
if (!lpddraw) return NULL;
diff --git a/dlls/winedos/vga.h b/dlls/winedos/vga.h
index cee6d49..2cd465b 100644
--- a/dlls/winedos/vga.h
+++ b/dlls/winedos/vga.h
@@ -35,7 +35,6 @@ void VGA_SetColor16(int reg,int color);
char VGA_GetColor16(int reg);
void VGA_Set16Palette(char *Table);
void VGA_Get16Palette(char *Table);
-void VGA_SetQuadPalette(RGBQUAD*color,int start,int len);
void VGA_SetWindowStart(int start);
int VGA_GetWindowStart(void);
void VGA_ShowMouse(BOOL show);
--
1.5.6.5
More information about the wine-patches
mailing list