- Issue 51 should be fixed.

- Patched 2 segfaults in Save_PKM() which were due to the packing routine accessing a byte of a picture beyond the allocated memory block.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@333 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Franck Charlet
2008-11-12 12:55:54 +00:00
parent 02bdbd4627
commit f5d45ade8e
6 changed files with 67 additions and 29 deletions

View File

@@ -466,10 +466,6 @@ const char * Nom_touche(word Touche)
// Renvoie 0 s'il n'y a pas de caractère associé (shift, backspace, etc)
word Conversion_ANSI(SDL_keysym Sym)
{
if ( Sym.unicode == 0)
{
return Sym.sym;
}
if ( Sym.unicode > 32 && Sym.unicode < 127)
{
return Sym.unicode; // Pas de souci, on est en ASCII standard
@@ -546,9 +542,15 @@ word Conversion_ANSI(SDL_keysym Sym)
{
return(SDLK_BACKSPACE);
}
// We make to difference between return & enter in the app context.
if(Sym.unicode == 3)
{
return(SDLK_RETURN);
}
#endif
return Sym.unicode;
}
// Sinon c'est une touche spéciale, on retourne son scancode
// Sinon c'est une touche spéciale, on retourne son scancode
return Sym.sym;
}