Fixed a couple of file descriptor leaks.
[wine/multimedia.git] / include / vga.h
blob3e5f92b9c4b659648f00a16666f4341ac7ebb6cd
1 /*
2 * VGA emulation
3 *
4 * Copyright 1998 Ove KÅven
6 */
8 #ifndef __WINE_VGA_H
9 #define __WINE_VGA_H
11 #include "winbase.h"
12 #include "wingdi.h"
14 /* graphics mode */
15 int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth);
16 int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth);
17 void VGA_Exit(void);
18 void VGA_SetPalette(PALETTEENTRY*pal,int start,int len);
19 void VGA_SetQuadPalette(RGBQUAD*color,int start,int len);
20 LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth);
21 void VGA_Unlock(void);
23 /* text mode */
24 int VGA_SetAlphaMode(unsigned Xres,unsigned Yres);
25 void VGA_GetAlphaMode(unsigned*Xres,unsigned*Yres);
26 void VGA_SetCursorPos(unsigned X,unsigned Y);
27 void VGA_GetCursorPos(unsigned*X,unsigned*Y);
29 /* control */
30 void CALLBACK VGA_Poll(ULONG_PTR arg);
31 void VGA_ioport_out(WORD port, BYTE val);
32 BYTE VGA_ioport_in(WORD port);
33 void VGA_Clean(void);
35 #endif /* __WINE_VGA_H */