diff options
author | 2019-07-26 16:47:55 +0200 | |
---|---|---|
committer | 2019-07-26 16:48:06 +0200 | |
commit | 90e89c08515f2bcdb34432f7b32f03faf77605ad (patch) | |
tree | cebb24fb30b9dae495200d225c4faf879c877abd /src/emu/rendlay.cpp | |
parent | 7132638c7e87594022e60dbffbb9ae87dd481deb (diff) |
rendlay: render 7seg off-segments and background with alpha, this allows lcd 7segs (nw)
Diffstat (limited to 'src/emu/rendlay.cpp')
-rw-r--r-- | src/emu/rendlay.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp index 4a2411573c1..95d254b469f 100644 --- a/src/emu/rendlay.cpp +++ b/src/emu/rendlay.cpp @@ -1455,7 +1455,7 @@ protected: virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override { const rgb_t onpen = rgb_t(0xff,0xff,0xff,0xff); - const rgb_t offpen = rgb_t(0xff,0x20,0x20,0x20); + const rgb_t offpen = rgb_t(0x20,0xff,0xff,0xff); // sizes for computation int bmwidth = 250; @@ -1465,7 +1465,7 @@ protected: // allocate a temporary bitmap for drawing bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight); - tempbitmap.fill(rgb_t(0xff,0x00,0x00,0x00)); + tempbitmap.fill(rgb_t(0x00,0x00,0x00,0x00)); // top bar draw_segment_horizontal(tempbitmap, 0 + 2*segwidth/3, bmwidth - 2*segwidth/3, 0 + segwidth/2, segwidth, BIT(state, 0) ? onpen : offpen); @@ -1517,8 +1517,8 @@ protected: virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override { const rgb_t onpen = rgb_t(0xff,0xff,0xff,0xff); - const rgb_t offpen = rgb_t(0xff,0x20,0x20,0x20); - const rgb_t backpen = rgb_t(0xff,0x00,0x00,0x00); + const rgb_t offpen = rgb_t(0x20,0xff,0xff,0xff); + const rgb_t backpen = rgb_t(0x00,0x00,0x00,0x00); // sizes for computation int bmwidth = 250; @@ -1585,7 +1585,7 @@ protected: virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override { const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff); - const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20); + const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff); // sizes for computation int bmwidth = 250; @@ -1595,7 +1595,7 @@ protected: // allocate a temporary bitmap for drawing bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight); - tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00)); + tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00)); // top bar draw_segment_horizontal(tempbitmap, @@ -1697,7 +1697,7 @@ protected: virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override { const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff); - const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20); + const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff); // sizes for computation int bmwidth = 250; @@ -1707,7 +1707,7 @@ protected: // allocate a temporary bitmap for drawing bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight); - tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00)); + tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00)); // top-left bar draw_segment_horizontal_caps(tempbitmap, @@ -1819,7 +1819,7 @@ protected: virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override { const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff); - const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20); + const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff); // sizes for computation int bmwidth = 250; @@ -1829,7 +1829,7 @@ protected: // allocate a temporary bitmap for drawing, adding some extra space for the tail bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight + segwidth); - tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00)); + tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00)); // top bar draw_segment_horizontal(tempbitmap, @@ -1940,7 +1940,7 @@ protected: virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override { const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff); - const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20); + const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff); // sizes for computation int bmwidth = 250; @@ -1950,7 +1950,7 @@ protected: // allocate a temporary bitmap for drawing bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight + segwidth); - tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00)); + tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00)); // top-left bar draw_segment_horizontal_caps(tempbitmap, @@ -2091,7 +2091,7 @@ protected: private: // internal state - int m_dots; + int m_dots; }; |