Fixed stricter compilation warnings, deleted unused asm code

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@288 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-18 19:23:35 +00:00
parent 20537fd58a
commit b488ec9272
19 changed files with 49 additions and 515 deletions

View File

@@ -320,9 +320,9 @@ word Conversion_Touche(SDL_keysym Sym)
// seront codées sur 11 bits, le 12e bit est mis à 1 (0x0800)
if (Sym.sym != 0)
Retour = Sym.sym;
else if (Sym.scancode != 0)
{
Retour = (Sym.scancode & 0x07FF) | 0x0800;
else if (Sym.scancode != 0)
{
Retour = (Sym.scancode & 0x07FF) | 0x0800;
}
if (Sym.mod & (KMOD_LSHIFT | KMOD_RSHIFT))
@@ -331,7 +331,7 @@ word Conversion_Touche(SDL_keysym Sym)
Retour |= MOD_CTRL;
if (Sym.mod & (KMOD_LALT | KMOD_RALT | KMOD_MODE))
Retour |= MOD_ALT;
return Retour;
return Retour;
}
const char * Nom_touche(word Touche)
@@ -447,7 +447,7 @@ const char * Nom_touche(word Touche)
}
// Touches au libellé connu
for (Indice=0; Indice < sizeof(Table_touches)/sizeof(S_Libelle_touche);Indice++)
for (Indice=0; Indice < (long)sizeof(Table_touches)/(long)sizeof(S_Libelle_touche);Indice++)
{
if (Touche == Table_touches[Indice].Sym)
{