1998-11-01 12:51:47 +00:00
|
|
|
|
/*
|
|
|
|
|
* VGA emulation
|
2002-05-31 23:06:46 +00:00
|
|
|
|
*
|
1998-11-01 12:51:47 +00:00
|
|
|
|
* Copyright 1998 Ove K<EFBFBD>ven
|
|
|
|
|
*
|
2002-03-09 23:29:33 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-11-01 12:51:47 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __WINE_VGA_H
|
|
|
|
|
#define __WINE_VGA_H
|
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
|
|
#include "windef.h"
|
2000-02-03 00:46:29 +00:00
|
|
|
|
#include "winbase.h"
|
1999-02-09 15:46:25 +00:00
|
|
|
|
#include "wingdi.h"
|
1998-11-01 12:51:47 +00:00
|
|
|
|
|
2000-02-03 00:46:29 +00:00
|
|
|
|
/* graphics mode */
|
1998-11-01 12:51:47 +00:00
|
|
|
|
int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth);
|
|
|
|
|
int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth);
|
|
|
|
|
void VGA_SetPalette(PALETTEENTRY*pal,int start,int len);
|
2002-03-20 00:55:05 +00:00
|
|
|
|
void VGA_SetColor16(int reg,int color);
|
2002-05-14 03:57:26 +00:00
|
|
|
|
char VGA_GetColor16(int reg);
|
|
|
|
|
void VGA_Set16Palette(char *Table);
|
|
|
|
|
void VGA_Get16Palette(char *Table);
|
1998-11-01 12:51:47 +00:00
|
|
|
|
void VGA_SetQuadPalette(RGBQUAD*color,int start,int len);
|
|
|
|
|
LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth);
|
|
|
|
|
void VGA_Unlock(void);
|
2002-08-13 03:17:42 +00:00
|
|
|
|
void VGA_SetWindowStart(int start);
|
2004-12-13 21:19:01 +00:00
|
|
|
|
int VGA_GetWindowStart(void);
|
2004-09-20 19:11:30 +00:00
|
|
|
|
void VGA_ShowMouse(BOOL show);
|
2000-02-03 00:46:29 +00:00
|
|
|
|
|
|
|
|
|
/* text mode */
|
2002-11-24 22:15:56 +00:00
|
|
|
|
void VGA_InitAlphaMode(unsigned*Xres,unsigned*Yres);
|
|
|
|
|
void VGA_SetAlphaMode(unsigned Xres,unsigned Yres);
|
2002-07-29 23:51:57 +00:00
|
|
|
|
BOOL VGA_GetAlphaMode(unsigned*Xres,unsigned*Yres);
|
2002-07-01 18:13:52 +00:00
|
|
|
|
void VGA_SetCursorShape(unsigned char start_options,unsigned char end);
|
2000-02-03 00:46:29 +00:00
|
|
|
|
void VGA_SetCursorPos(unsigned X,unsigned Y);
|
2002-11-24 22:15:56 +00:00
|
|
|
|
void VGA_GetCursorPos(unsigned*X,unsigned*Y);
|
2000-05-23 21:14:11 +00:00
|
|
|
|
void VGA_WriteChars(unsigned X,unsigned Y,unsigned ch,int attr,int count);
|
2002-04-08 20:11:28 +00:00
|
|
|
|
void VGA_PutChar(BYTE ascii);
|
|
|
|
|
void VGA_SetTextAttribute(BYTE attr);
|
2002-11-24 22:15:56 +00:00
|
|
|
|
void VGA_ClearText(unsigned row1, unsigned col1,
|
2002-04-11 17:33:15 +00:00
|
|
|
|
unsigned row2, unsigned col2,
|
|
|
|
|
BYTE attr);
|
2002-05-31 23:06:46 +00:00
|
|
|
|
void VGA_ScrollUpText(unsigned row1, unsigned col1,
|
2002-04-11 17:33:15 +00:00
|
|
|
|
unsigned row2, unsigned col2,
|
|
|
|
|
unsigned lines, BYTE attr);
|
2002-05-31 23:06:46 +00:00
|
|
|
|
void VGA_ScrollDownText(unsigned row1, unsigned col1,
|
2002-04-11 17:33:15 +00:00
|
|
|
|
unsigned row2, unsigned col2,
|
|
|
|
|
unsigned lines, BYTE attr);
|
2002-11-24 22:15:56 +00:00
|
|
|
|
void VGA_GetCharacterAtCursor(BYTE *ascii, BYTE *attr);
|
2000-02-03 00:46:29 +00:00
|
|
|
|
|
|
|
|
|
/* control */
|
1998-11-01 12:51:47 +00:00
|
|
|
|
void VGA_ioport_out(WORD port, BYTE val);
|
1998-11-08 15:06:31 +00:00
|
|
|
|
BYTE VGA_ioport_in(WORD port);
|
2000-02-03 00:46:29 +00:00
|
|
|
|
void VGA_Clean(void);
|
1998-11-01 12:51:47 +00:00
|
|
|
|
|
|
|
|
|
#endif /* __WINE_VGA_H */
|