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

AJR Hacker
MAME Developer
Reged: 02/01/16
Posts: 144
Send PM
Re: Aaaargh!
09/07/16 07:49 PM


Unfortunately, it does depend on static initialization. In src/mame/video/vicdual.cpp can be found this hard-coded color table:


Code:


static const pen_t pens_from_color_prom[] =
{
rgb_t::black,
rgb_t(0x00, 0xff, 0x00),
rgb_t(0x00, 0x00, 0xff),
rgb_t(0x00, 0xff, 0xff),
rgb_t(0xff, 0x00, 0x00),
rgb_t(0xff, 0xff, 0x00),
rgb_t(0xff, 0x00, 0xff),
rgb_t::white
};



rgb_t::black, rgb_t::white and a bunch of similar variables are declared as static const in src/lib/util/palette.h.







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 
1 registered and 359 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