MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM
Re: Aaaargh!
09/07/16 03:18 PM


> If it's something that depends on the order of static initialisation across files,
> then really it's a legitimate bug that needs to be fixed. But I don't quite
> understand the issue as you described, the text meandered, so I'm not sure what
> you're saying.

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.

Edited by R. Belmont (09/07/16 03:19 PM)







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 367 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2020