Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8142/src
Modified Files:
mousecursor.cpp mousecursor.h setup.cpp
Log Message:
Added hidden state to mouse cursor.
Also forgot to free gray text when added it. Shame on me! :)
Index: mousecursor.h
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/mousecursor.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mousecursor.h 14 Jun 2004 22:45:23 -0000 1.9
+++ mousecursor.h 29 Jun 2004 17:47:36 -0000 1.10
@@ -31,7 +31,8 @@
enum {
MC_NORMAL,
MC_CLICK,
- MC_LINK
+ MC_LINK,
+ MC_HIDE
};
class MouseCursor
Index: mousecursor.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/mousecursor.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mousecursor.cpp 28 Jun 2004 11:30:27 -0000 1.11
+++ mousecursor.cpp 29 Jun 2004 17:47:36 -0000 1.12
@@ -61,6 +61,9 @@
void MouseCursor::draw(DrawingContext& context)
{
+ if(cur_state == MC_HIDE)
+ return;
+
int x,y,w,h;
Uint8 ispressed = SDL_GetMouseState(&x,&y);
w = cursor->w / tot_frames;
Index: setup.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/setup.cpp,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- setup.cpp 28 Jun 2004 17:12:34 -0000 1.104
+++ setup.cpp 29 Jun 2004 17:47:36 -0000 1.105
@@ -619,6 +619,7 @@
delete gold_text;
delete white_text;
delete blue_text;
+ delete gray_text;
delete white_small_text;
delete white_big_text;
delete yellow_nums;
|