Implement [ format specifier.
[wine/multimedia.git] / dlls / winedos / vga.h
blobcf4dfb8b4963fd86082f5ff0f4b611eafdeccf0f
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_VGA_H
22 #define __WINE_VGA_H
24 #include "winbase.h"
25 #include "wingdi.h"
27 /* graphics mode */
28 int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth);
29 int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth);
30 void VGA_Exit(void);
31 void VGA_SetPalette(PALETTEENTRY*pal,int start,int len);
32 void VGA_SetColor16(int reg,int color);
33 char VGA_GetColor16(int reg);
34 void VGA_Set16Palette(char *Table);
35 void VGA_Get16Palette(char *Table);
36 void VGA_SetQuadPalette(RGBQUAD*color,int start,int len);
37 LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth);
38 void VGA_Unlock(void);
39 void VGA_SetWindowStart(int start);
40 int VGA_GetWindowStart();
42 /* text mode */
43 int VGA_SetAlphaMode(unsigned Xres,unsigned Yres);
44 BOOL VGA_GetAlphaMode(unsigned*Xres,unsigned*Yres);
45 void VGA_SetCursorShape(unsigned char start_options,unsigned char end);
46 void VGA_SetCursorPos(unsigned X,unsigned Y);
47 void VGA_GetCursorPos(unsigned*X,unsigned*Y);
48 void VGA_WriteChars(unsigned X,unsigned Y,unsigned ch,int attr,int count);
49 void VGA_PutChar(BYTE ascii);
50 void VGA_SetTextAttribute(BYTE attr);
51 BOOL VGA_ClearText(unsigned row1, unsigned col1,
52 unsigned row2, unsigned col2,
53 BYTE attr);
54 void VGA_ScrollUpText(unsigned row1, unsigned col1,
55 unsigned row2, unsigned col2,
56 unsigned lines, BYTE attr);
57 void VGA_ScrollDownText(unsigned row1, unsigned col1,
58 unsigned row2, unsigned col2,
59 unsigned lines, BYTE attr);
60 void VGA_GetCharacterAtCursor(BYTE *ascii, BYTE *attr);
62 /* control */
63 void VGA_ioport_out(WORD port, BYTE val);
64 BYTE VGA_ioport_in(WORD port);
65 void VGA_Clean(void);
67 #endif /* __WINE_VGA_H */