	IFND EVD_CONTEXT_I
EVD_CONTEXT_I SET 1

*
*   evd_context.i - context structure
*   Copyright (C) 1997 Aki Laukkanen
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
*   This program 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 General Public License for more details.
*
*   You should have received a copy of the GNU General Public License
*   along with this program; if not, write to the Free Software Foundation,
*   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*

	IFND EXEC_TYPES_I
	INCLUDE "exec/types.i"
	ENDC

	IFND    UTILITY_TAGITEM_I
	INCLUDE "utility/tagitem.i"
	ENDC

	IFND    GRAPHICS_GFX_I
	INCLUDE "graphics/gfx.i"
	ENDC

EVD_OK       EQU    0
EVD_ERROR    EQU    -1

 STRUCTURE UpdateRegion,0
	APTR    ur_Next
	UWORD   ur_x1
	UWORD   ur_y1
	UWORD   ur_x2
	UWORD   ur_y2
	LABEL   ur_SIZEOF

 STRUCTURE Context,0
	APTR    ct_SysBase
	APTR    ct_IntuitionBase
	APTR    ct_GfxBase
	APTR    ct_UtilityBase
	APTR    ct_DOSBase

	APTR    ct_ChunkyBuffer
	APTR    ct_DeltaBuffer
	APTR    ct_Screen
	STRUCT  ct_BitMap,bm_SIZEOF
	APTR    ct_ViewPort

	UBYTE   ct_CM1
	UBYTE   ct_CM2
	UBYTE   ct_CM3
	UBYTE   ct_CM4

	LONG    ct_X
	LONG    ct_Y
	ULONG   ct_VideoMode
	ULONG   ct_DisplayID
	ULONG   ct_Overscan

	ULONG   ct_Size
	ULONG   ct_BMSize
	LONG    ct_NumPlanes
	APTR    ct_PageDesc
	APTR    ct_Lut15
	APTR    ct_C2P
	APTR    ct_First
	UWORD   ct_RefreshCnt

	; prefs

	APTR    ct_PrefsTmp
	BOOL    ct_FCached
	BOOL    ct_Cimprec
	UWORD   ct_NumPalettes
	APTR    ct_Palettes
	BOOL    ct_BorderBlank
	BOOL    ct_OwnRefresh
	UWORD   ct_RefreshRate
	UWORD   ct_UsedPalette

	LABEL   ct_SIZEOF

	ENDC    ; EVD_CONTEXT_I
