AWJ |
|
|
|
Reged: 03/08/05
|
Posts: 936
|
Loc: Ottawa, Ontario
|
|
Send PM
|
|
Re: Aaaargh!
09/07/16 06:01 PM
|
|
|
> The stock colors are initialized after global statics are constructed, so this: > > static const rgb_t colors[] = { rgb_t::white }; > > will yield a random (usually black) color, unless it's inside a function's scope. > This has been a known thing for at least 2 years now. The stock colors really should > be #defines or something to prevent this. I had to change the Apple II drivers to > just use hex RGB values instead.
Now that MAME is C++14, shouldn't this be fixable by declaring the rgb_t's constructor(s) constexpr? (not 100% sure about this, I've read conflicting things about exactly what constexpr does...)
|
|