//============================================================
//
//	video.h - Win32 implementation of MAME video routines
//
//============================================================

#ifndef __WIN_VIDEO__
#define __WIN_VIDEO__


//============================================================
//	PARAMETERS
//============================================================

// maximum video size
#define MAX_VIDEO_WIDTH			1600
#define MAX_VIDEO_HEIGHT		1200

#define GRADATION_LEVEL			64

enum
{
	FONT_COLOR_BLANK = 0,
	FONT_COLOR_NORMAL,
	FONT_COLOR_DARK,
	FONT_COLOR_SPECIAL,
	SYSTEM_COLOR_BACKGROUND,
	SYSTEM_COLOR_FRAMEMEDIUM,
	SYSTEM_COLOR_FRAMELIGHT,
	SYSTEM_COLOR_FRAMEDARK,
	OSDBAR_COLOR_FRAMEMEDIUM,
	OSDBAR_COLOR_FRAMELIGHT,
	OSDBAR_COLOR_FRAMEDARK,
	OSDBAR_COLOR_DEFAULTBAR,
	TITLEBAR_LEFT,
	TITLEBAR_RIGHT,
	BUTTON_COLOR_RED,
	BUTTON_COLOR_YELLOW,
	BUTTON_COLOR_GREEN,
	BUTTON_COLOR_BLUE,
	BUTTON_COLOR_PURPLE,
	BUTTON_COLOR_PINK,
	BUTTON_COLOR_AQUA,
	CURSOR_COLOR,
	ALT_BACKGROUND_COLOR,
	VOLUME_LIGHTRED,
	VOLUME_LIGHTYELLOW,
	VOLUME_LIGHTGREEN,
	VOLUME_DARKRED,
	VOLUME_DARKYELLOW,
	VOLUME_DARKGREEN,
	VOLUME_MOVEBAR,
	JUKEBOX_BACKGROUND,
	MAX_COLORTABLE
};



//============================================================
//	GLOBAL VARIABLES
//============================================================

// current frameskip/autoframeskip settings
extern int			frameskip;
extern int			autoframeskip;

// speed throttling
extern int			throttle;

// palette lookups
extern UINT8		palette_lookups_invalid;
extern UINT32 		palette_16bit_lookup[];
extern UINT32 		palette_32bit_lookup[];

// rotation
extern UINT8		blit_flipx;
extern UINT8		blit_flipy;
extern UINT8		blit_swapxy;

// system memory
extern int			systemmemory;

// UI colortable
extern UINT32		ui_colortable[MAX_COLORTABLE];


//============================================================
//	PROTOTYPES
//============================================================

void win_orient_rect(struct rectangle *rect);
void win_disorient_rect(struct rectangle *rect);
void update_visible_area(struct mame_display *display);

#endif
