diff options
Diffstat (limited to 'src/emu/drawgfx.h')
-rw-r--r-- | src/emu/drawgfx.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/emu/drawgfx.h b/src/emu/drawgfx.h index a588fbc61eb..b5f15be9ecb 100644 --- a/src/emu/drawgfx.h +++ b/src/emu/drawgfx.h @@ -11,11 +11,13 @@ #pragma once +#ifndef __EMU_H__ +#error Dont include this file directly; include emu.h instead. +#endif + #ifndef __DRAWGFX_H__ #define __DRAWGFX_H__ -#include "emucore.h" - /*************************************************************************** @@ -115,9 +117,9 @@ struct _gfx_layout }; -/* In emucore.h: typedef struct _gfx_element gfx_element; */ -struct _gfx_element +class gfx_element { +public: UINT16 width; /* current pixel width of each element (changeble with source clipping) */ UINT16 height; /* current pixel height of each element (changeble with source clipping) */ UINT16 startx; /* current source clip X offset */ @@ -147,8 +149,7 @@ struct _gfx_element }; -typedef struct _gfx_decode_entry gfx_decode_entry; -struct _gfx_decode_entry +struct gfx_decode_entry { const char * memory_region; /* memory region where the data resides */ UINT32 start; /* offset of beginning of data to decode */ |