summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-24 12:57:58 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-24 12:58:31 +0200
commit89c5e1f681107b6d9f8ba7f761c388d1e2052fe4 (patch)
treec5ce4530d0c03fa1c04021844272b82b7b7ebcbc /src/emu/video
parentef0968b87042040e1f0e18c84ce804f744f8e23e (diff)
Various cleanups suggested by static analyzer (nw)
Diffstat (limited to 'src/emu/video')
-rw-r--r--src/emu/video/rgbgen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/video/rgbgen.h b/src/emu/video/rgbgen.h
index 4ade036637a..12ec8f3d765 100644
--- a/src/emu/video/rgbgen.h
+++ b/src/emu/video/rgbgen.h
@@ -35,12 +35,12 @@ public:
}
inline void set(rgb_t& rgba) { set(rgba.a(), rgba.r(), rgba.g(), rgba.b()); }
- inline rgb_t to_rgba()
+ inline rgb_t to_rgba() const
{
return rgb_t(m_a, m_r, m_g, m_b);
}
- inline rgb_t to_rgba_clamp()
+ inline rgb_t to_rgba_clamp() const
{
UINT8 a = (m_a < 0) ? 0 : (m_a > 255) ? 255 : m_a;
UINT8 r = (m_r < 0) ? 0 : (m_r > 255) ? 255 : m_r;