From: Carsten W. <ca...@us...> - 2008-03-02 08:35:34
|
Update of /cvsroot/jake2/jake2/src/jake2/client In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29113/src/jake2/client Modified Files: Menu.java Log Message: inline cursorname Index: Menu.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/client/Menu.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Menu.java 24 Oct 2006 22:15:53 -0000 1.21 --- Menu.java 2 Mar 2008 08:35:30 -0000 1.22 *************** *** 362,368 **** static void DrawCursor(int x, int y, int f) { - //char cursorname[80]; - String cursorname; - assert (f >= 0) : "negative time and cursor bug"; --- 362,365 ---- *************** *** 370,385 **** if (!cached) { ! int i; ! ! for (i = 0; i < NUM_CURSOR_FRAMES; i++) { ! cursorname = "m_cursor" + i; ! ! re.RegisterPic(cursorname); } cached = true; } ! ! cursorname = "m_cursor" + f; ! re.DrawPic(x, y, cursorname); } --- 367,376 ---- if (!cached) { ! for (int i = 0; i < NUM_CURSOR_FRAMES; i++) { ! re.RegisterPic("m_cursor" + i); } cached = true; } ! re.DrawPic(x, y, "m_cursor" + f); } |