diff options
Diffstat (limited to 'src/mame/video/apple2.h')
-rw-r--r-- | src/mame/video/apple2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/apple2.h b/src/mame/video/apple2.h index 1f601981b9f..819fe3bfb09 100644 --- a/src/mame/video/apple2.h +++ b/src/mame/video/apple2.h @@ -15,15 +15,12 @@ #define BORDER_RIGHT (32) #define BORDER_TOP (16) // (plus bottom) -class a2_video_device : - public device_t +class a2_video_device : public device_t, public device_palette_interface { public: // construction/destruction a2_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - DECLARE_PALETTE_INIT(apple2); - bool m_page2; bool m_flash; bool m_mix; @@ -64,6 +61,9 @@ protected: virtual void device_reset() override; virtual void device_start() override; + virtual uint32_t palette_entries() const override; + void init_palette(); + private: void plot_text_character(bitmap_ind16 &bitmap, int xpos, int ypos, int xscale, uint32_t code, const uint8_t *textgfx_data, uint32_t textgfx_datalen, int fg, int bg); void plot_text_character_ultr(bitmap_ind16 &bitmap, int xpos, int ypos, int xscale, uint32_t code, const uint8_t *textgfx_data, uint32_t textgfx_datalen, int fg, int bg); |