summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-09-19 21:07:14 +1000
committer Vas Crabb <vas@vastheman.com>2020-09-19 21:07:14 +1000
commit688db69e4c3013ef2ee2bfffbc0cb3f84567d281 (patch)
tree3a8b7003815f31712ba5739a646d009e5ceef721 /src/emu
parent3732cc1820e13a7f84595554fb76255c8658aa31 (diff)
-emu/rendlay.cpp: Small optimisation for opaque pixels in image component.
-machine/pc1512kb.cpp: Put \| and #~ on the right keys by default. -docs: Re-organised default keys, added P2-4 defaults, added mahjong panel diagram.
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/rendlay.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp
index 198fa03998a..6e5f795a70b 100644
--- a/src/emu/rendlay.cpp
+++ b/src/emu/rendlay.cpp
@@ -1365,7 +1365,11 @@ protected:
{
rgb_t const a(*src);
u32 const aa(a.a());
- if (aa)
+ if (255 == aa)
+ {
+ *dst = *src;
+ }
+ else if (aa)
{
rgb_t const b(*dst);
u32 const ba(b.a());