[Xastir] ALOHA color

Tom Russo russo at bogodyn.org
Sat Feb 23 22:44:06 EST 2008


On Sat, Feb 23, 2008 at 03:43:38PM -0700, we recorded a bogon-computron collision of the <earl_needham at yahoo.com> flavor, containing:
> 
>         Is there a way to change the color of the ALOHA circle?  This pale 
> yellow is just too difficult to see in a bouncing truck.

Only by editing the source code and recompiling.  It, like the color of
the range circles for digipeaters, is hardcoded. 

Look near line 3827 of db.c, where you'll see:

            draw_aloha_circle(l_lon,
                l_lat,
                aloha_radius,
                colors[0x0e],
                pixmap_final);
 

The color is set there to use element 0x0e of the colors array.  colors[0x0e] 
is defined elsewhere, in main.c, and it's there that you can find other colors 
to use.  Just replace 0x0e in the line above with one of the other indices into
the colors array that you'll find in a long list of colors near line 9289 of 
main.c

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick



More information about the Xastir mailing list