Implemented font listing under linux in a quite hacky way. The directory list returned by XGetFontPath is not really usable, there are some path with appended :unscaled for non-ttf fonts, so i needed to add some null-pointer check to for_each_file after the opendir to avoid a crash. I think most of my ttf fonts gets listed, but at a quick glance i find some duplicates and the list is not alphabetically sorted. That would be a great improvement (sort and remove duplicates).
Also renamed Mask to Mask_table because XLib.h already defines some var called Mask. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@337 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
2
global.h
2
global.h
@@ -452,7 +452,7 @@ GLOBAL short Tiling_Decalage_Y; // D
|
||||
// Mode Mask
|
||||
|
||||
GLOBAL byte Mask_Mode; // Le mode Masque est enclenché
|
||||
GLOBAL byte Mask[256]; // Tableau des couleurs constituant le masque
|
||||
GLOBAL byte Mask_table[256]; // Tableau des couleurs constituant le masque
|
||||
|
||||
// Mode loupe:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user