summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video/rgbgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/video/rgbgen.h')
-rw-r--r--src/emu/video/rgbgen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/video/rgbgen.h b/src/emu/video/rgbgen.h
index b5986915f82..e460208d9fd 100644
--- a/src/emu/video/rgbgen.h
+++ b/src/emu/video/rgbgen.h
@@ -55,6 +55,7 @@ public:
return rgb_t(a, r, g, b);
}
+ void set_a16(const s32 value) { m_a = value; }
void set_a(const s32 value) { m_a = value; }
void set_r(const s32 value) { m_r = value; }
void set_g(const s32 value) { m_g = value; }
@@ -349,6 +350,11 @@ public:
m_b = (m_b < b) ? 0xffffffff : 0;
}
+ void merge_alpha16(const rgbaint_t& alpha)
+ {
+ m_a = alpha.m_a;
+ }
+
void merge_alpha(const rgbaint_t& alpha)
{
m_a = alpha.m_a;