diff options
author | Vas Crabb <vas@vastheman.com> | 2020-09-20 11:39:28 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-09-20 11:39:28 +1000 |
commit | dbb277456c11389ae4fd30132786753caacfbf5f (patch) | |
tree | b3c4e9504fac0279f200af13deed628148d1af62 /src/mame/layout | |
parent | 1049b305d644b0eb66686ab9802ff8b2cd12d9d4 (diff) |
rendlay.cpp: Correct output alpha for rect and disk components.
This corrects alpha for cases when both the rect/disk and whatever it's
drawing over are translucent, and also optimises for fully opaque and
fully transparent pixels.
Diffstat (limited to 'src/mame/layout')
-rw-r--r-- | src/mame/layout/cgang.lay | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/layout/cgang.lay b/src/mame/layout/cgang.lay index a8a46b91c66..bfec018b261 100644 --- a/src/mame/layout/cgang.lay +++ b/src/mame/layout/cgang.lay @@ -74,7 +74,7 @@ license:CC0 </element> <element name="nothing" defstate="0"> - <text string=" "/> + <rect><color alpha="0" /></rect> </element> <element name="hlb" defstate="0"> @@ -254,7 +254,7 @@ license:CC0 </element> <element name="ani_white" defstate="0"> - <text string=" "><bounds x="0" y="0" width="1" height="100" /></text> + <rect><bounds x="0" y="0" width="1" height="100" /><color alpha="0" /></rect> <rect state="1"><bounds x="0" y="0" width="1" height="1" /><color red="1" green="1" blue="1" /></rect> <rect state="2"><bounds x="0" y="0" width="1" height="2" /><color red="1" green="1" blue="1" /></rect> <rect state="3"><bounds x="0" y="0" width="1" height="3" /><color red="1" green="1" blue="1" /></rect> @@ -358,7 +358,7 @@ license:CC0 </element> <element name="ani_crate" defstate="0"> - <text string=" "><bounds x="0" y="0" width="1" height="110" /></text> + <rect><bounds x="0" y="0" width="1" height="110" /><color alpha="0" /></rect> <rect state="0"><bounds x="0" y="0" width="1" height="10" /><color red="0.75" green="0.1" blue="0.15" /></rect> <rect state="1"><bounds x="0" y="1" width="1" height="10" /><color red="0.75" green="0.1" blue="0.15" /></rect> <rect state="2"><bounds x="0" y="2" width="1" height="10" /><color red="0.75" green="0.1" blue="0.15" /></rect> |