Fixed mouse cursor in text input (Readline(), recent problems)

Fixed refresh problem when rotating a brush outside of screen limits (bug in 98%)
Fixed Palette window having 'S' as shortcut for 2 functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@612 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-02-08 00:46:42 +00:00
parent 8aadfe3732
commit 1ed8852d64
7 changed files with 21 additions and 43 deletions

View File

@@ -38,6 +38,7 @@
#include "sdlscreen.h"
#include "readline.h"
#include "windows.h"
#include "input.h"
#define COULEUR_TEXTE CM_Noir
#define COULEUR_FOND CM_Clair
@@ -144,6 +145,7 @@ byte Readline_ex(word Pos_X,word Pos_Y,char * Chaine,byte Taille_affichee,byte T
byte Offset=0; // Indice du premier caractère affiché
Effacer_curseur();
// Effacement de la chaîne
Block(Fenetre_Pos_X+(Pos_X*Menu_Facteur_X),Fenetre_Pos_Y+(Pos_Y*Menu_Facteur_Y),
Taille_affichee*(Menu_Facteur_X<<3),(Menu_Facteur_Y<<3),COULEUR_FOND);
@@ -179,7 +181,13 @@ byte Readline_ex(word Pos_X,word Pos_Y,char * Chaine,byte Taille_affichee,byte T
while ((Touche_lue!=SDLK_RETURN) && (Touche_lue!=TOUCHE_ESC))
{
Touche_lue=Get_key();
Afficher_curseur();
do
{
if(!Get_input()) Wait_VBL();
Touche_lue=Touche_ANSI;
} while(Touche_lue==0);
Effacer_curseur();
switch (Touche_lue)
{
case SDLK_DELETE : // Suppr.