summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/huc6260.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-13 13:32:49 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-13 13:32:49 -0400
commit66aece0d824d5fbc708e8e89ae1f49a23acc51cb (patch)
treebd3fa0561ff83b75919a9e17dab452e66b471e55 /src/devices/video/huc6260.h
parent1d6813713596cbdbbd9fe592cd3367f1551aadaf (diff)
huc6260: Internalize palette (nw)
Diffstat (limited to 'src/devices/video/huc6260.h')
-rw-r--r--src/devices/video/huc6260.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/video/huc6260.h b/src/devices/video/huc6260.h
index defda4e6841..c3c6159fec7 100644
--- a/src/devices/video/huc6260.h
+++ b/src/devices/video/huc6260.h
@@ -26,6 +26,7 @@
class huc6260_device : public device_t,
+ public device_palette_interface,
public device_video_interface
{
public:
@@ -56,9 +57,12 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- virtual void device_add_mconfig(machine_config &config) override;
+
+ virtual uint32_t palette_entries() const override { return PALETTE_SIZE; }
private:
+ void palette_init();
+
int m_last_h;
int m_last_v;
int m_height;
@@ -86,8 +90,6 @@ private:
emu_timer *m_timer;
std::unique_ptr<bitmap_ind16> m_bmp;
-
- DECLARE_PALETTE_INIT(huc6260);
};