gdi: Fix test for GetGlyphIndicesW on non Unicode systems.
[wine/hacks.git] / dlls / winedos / vga.h
blob25e3f7fe92c455151e12d70d7f37e98fae9d508d
1 /*
2 * VGA emulation
4 * Copyright 1998 Ove KÅven
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_VGA_H
22 #define __WINE_VGA_H
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
30 /* graphics mode */
31 int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth);
32 int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth);
33 void VGA_SetPalette(PALETTEENTRY*pal,int start,int len);
34 void VGA_SetColor16(int reg,int color);
35 char VGA_GetColor16(int reg);
36 void VGA_Set16Palette(char *Table);
37 void VGA_Get16Palette(char *Table);
38 void VGA_SetQuadPalette(RGBQUAD*color,int start,int len);
39 LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth);
40 void VGA_Unlock(void);
41 void VGA_SetWindowStart(int start);
42 int VGA_GetWindowStart(void);
43 void VGA_ShowMouse(BOOL show);
45 /* text mode */
46 void VGA_InitAlphaMode(unsigned*Xres,unsigned*Yres);
47 void VGA_SetAlphaMode(unsigned Xres,unsigned Yres);
48 BOOL VGA_GetAlphaMode(unsigned*Xres,unsigned*Yres);
49 void VGA_SetCursorShape(unsigned char start_options,unsigned char end);
50 void VGA_SetCursorPos(unsigned X,unsigned Y);
51 void VGA_GetCursorPos(unsigned*X,unsigned*Y);
52 void VGA_WriteChars(unsigned X,unsigned Y,unsigned ch,int attr,int count);
53 void VGA_PutChar(BYTE ascii);
54 void VGA_SetTextAttribute(BYTE attr);
55 void VGA_ClearText(unsigned row1, unsigned col1,
56 unsigned row2, unsigned col2,
57 BYTE attr);
58 void VGA_ScrollUpText(unsigned row1, unsigned col1,
59 unsigned row2, unsigned col2,
60 unsigned lines, BYTE attr);
61 void VGA_ScrollDownText(unsigned row1, unsigned col1,
62 unsigned row2, unsigned col2,
63 unsigned lines, BYTE attr);
64 void VGA_GetCharacterAtCursor(BYTE *ascii, BYTE *attr);
66 /* control */
67 void VGA_ioport_out(WORD port, BYTE val);
68 BYTE VGA_ioport_in(WORD port);
69 void VGA_Clean(void);
71 #endif /* __WINE_VGA_H */