Fix broken characters >127 in the help window.

Fix broken characters >127 in normal fonts.
(Pkm: I unsigned the characters during gcc port, please don't re-sign them :)
Got rid of OEM->ANSI character translation in normal text.
Now displays the nice '...' character for filenames that dont fit windows/menus.
(dev) Added a sample Amstrad CPC picture with wide pixels. Remember to run grafx2 with '/wide'


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@394 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-12-16 19:26:19 +00:00
parent 22670e7215
commit 78df30d844
10 changed files with 42 additions and 56 deletions

4
aide.c
View File

@@ -90,7 +90,7 @@ void Afficher_aide(void)
short Largeur; // Largeur physique d'une ligne de texte
char TypeLigne; // N: Normale, T: Titre, S: Sous-titre
// -: Ligne inférieur de sous-titre
const char * Ligne;
const unsigned char * Ligne;
char Buffer[44]; // Buffer texte utilisé pour formater les noms de
// raccourcis clavier
short Position_lien=0; // Position du premier caractère "variable"
@@ -122,7 +122,7 @@ void Afficher_aide(void)
else if (TypeLigne == 'K')
{
const char *Lien;
Position_lien = strstr(Ligne,"%s") - Ligne;
Position_lien = (unsigned char *)strstr(Ligne,"%s") - Ligne;
Lien=Valeur_Raccourci_Clavier(Table_d_aide[Section_d_aide_en_cours].Table_aide[Ligne_de_depart + Indice_de_ligne].valeur);
Taille_lien=strlen(Lien);
sprintf(Buffer, Ligne, Lien);