Fix issue 185 (XOR highlight) :
* Use a simple optimization algorithm to compute a good set of XOR color pairs * Algorothm is not very optimized (complexity is up to n^3). In practize, it stabilizes after 2 to 3 rounds of swapping colors * Use this color table for all XOR effects * Setting for grid color is now removed git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2048 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -334,6 +334,8 @@ GFX2_GLOBAL long Main_edits_since_safety_backup;
|
||||
GFX2_GLOBAL Uint32 Main_time_of_safety_backup;
|
||||
/// Letter prefix for the filenames of safety backups. a or b
|
||||
GFX2_GLOBAL byte Main_safety_backup_prefix;
|
||||
/// Lookup table for XOR effects, pointing each color to the most different one
|
||||
GFX2_GLOBAL byte xor_lut[256];
|
||||
|
||||
// -- Spare page data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user