From 6d47ee1952aaa999ff6957dfe82cf47a397262bf Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 7 Oct 2008 17:26:34 +0000 Subject: [PATCH] fixed a little screen update bug in cursor handling. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@212 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.c b/graph.c index 20b43f13..fc8e2c53 100644 --- a/graph.c +++ b/graph.c @@ -2685,7 +2685,7 @@ void Effacer_curseur(void) if (Fin_Y<4) Ligne_verticale_XOR (Mouse_X,Mouse_Y+3,4-Fin_Y); - SDL_UpdateRect(Ecran_SDL,Debut_X,Debut_Y,Fin_X-Debut_X,Fin_Y-Debut_Y); + SDL_UpdateRect(Ecran_SDL,Debut_X,Debut_Y,(Fin_X>=Debut_X)?Fin_X-Debut_X+1:0,(Fin_X>=Debut_X)?Fin_Y-Debut_Y+1:0); } else {