[Xastir] trail colors
Andrew Rich
vk4tec at people.net.au
Thu Aug 23 12:44:22 EDT 2007
If I want to lock down my trail colors to all the same, what do I set "temp"
to ?
Is is a hex number ?
/*
* Change the trail color for a station
*/
void Change_trail_color( Widget w, XtPointer clientData, XtPointer calldata)
{
DataRow *p_station = clientData;
int temp;
temp = p_station->trail_color;
// Increment to the next color, round-robin style
temp = (temp + 1) % MAX_TRAIL_COLORS;
// Test for and skip if my trail color
if (temp == MY_TRAIL_COLOR) {
temp = (temp + 1) % MAX_TRAIL_COLORS;
}
p_station->trail_color = temp;
redraw_on_new_data = 2; // redraw symbols now
}
----------------------------------------------------------------------------
Andrew Rich VK4TEC
vk4tec at people.net.au
http://www.tech-software.net
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 22/08/2007
6:51 PM
More information about the Xastir
mailing list