MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

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...)







Entire thread
Subject Posted by Posted on
* Aaaargh! H@P 09/07/16 03:43 AM
. * Re: Aaaargh! H@P  10/02/16 12:29 AM
. * Re: Aaaargh! Vas Crabb  10/02/16 12:36 PM
. * Re: Aaaargh! casm  09/07/16 03:12 PM
. * Re: Aaaargh! Vas Crabb  09/07/16 07:03 AM
. * Re: Aaaargh! AJR Hacker  09/07/16 07:49 PM
. * Re: Aaaargh! R. Belmont  09/07/16 03:18 PM
. * Re: Aaaargh! AWJ  09/07/16 06:01 PM
. * Re: Aaaargh! AJR Hacker  09/07/16 08:27 PM
. * Re: Aaaargh! MooglyGuy  09/07/16 09:58 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 24 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1982