summaryrefslogtreecommitdiffstats
path: root/src/mess/video/bbc.c
diff options
context:
space:
mode:
authorGravatarGravatar Aaron Giles <aaron@aarongiles.com>2014-02-19 06:07:32 +0000
committerGravatarGravatar Aaron Giles <aaron@aarongiles.com>2014-02-19 06:07:32 +0000
commit57cfaa163ee656de8f25e079eb721b3cb9720a9a (patch) (github)
tree8b235effed1208b1c9b18d554f27154ce4df741d /src/mess/video/bbc.c
parent5c2b6036df886a416ea727ecb72da2827b43bd93 (diff)
downloadmame-57cfaa163ee656de8f25e079eb721b3cb9720a9a.tar.bz2
mame-57cfaa163ee656de8f25e079eb721b3cb9720a9a.zip
Switched rgb_t to a class, replacing macros with methods. Mappings are
as follows: MAKE_RGB(r,g,b) == rgb_t(r,g,b) MAKE_ARGB(a,r,g,b) == rgb_t(a,r,g,b) RGB_ALPHA(data) == data.a() RGB_RED(data) == data.r() RGB_GREEN(data) == data.g() RGB_BLUE(data) == data.b() RGB_BLACK == rgb_t::black RGB_WHITE == rgb_t::white Implicit conversions to/from UINT32 are built in as well as simple addition, subtraction, and scaling (with clamping). As a result of being a class, some stricter typing was needed in a few places but overall not too much.
Diffstat (limited to 'src/mess/video/bbc.c')
-rw-r--r--src/mess/video/bbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mess/video/bbc.c b/src/mess/video/bbc.c
index 37d21946ba9..8270b84fe56 100644
--- a/src/mess/video/bbc.c
+++ b/src/mess/video/bbc.c
@@ -201,7 +201,7 @@ static MC6845_UPDATE_ROW( vid_update_row )
int g = BIT(col, 1) * 0xff;
int b = BIT(col, 2) * 0xff;
- rgb_t rgb = MAKE_RGB(r, g, b);
+ rgb_t rgb = rgb_t(r, g, b);
bitmap.pix32(y, (x_pos*state->m_pixels_per_byte)+pixelno) = rgb;
}