X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgui%2Fmousecursor.cpp;h=3a873216128d2ffe8ad9386fedfb9e32e18bb0d4;hb=8b8e1c3576cedddb1d88eafa5fd4804e8257793c;hp=51bf984829f91b69930584b71d653d2673c7acd0;hpb=86181b0a14d89cf45daf97199c3556c4dd1ee7b7;p=supertux.git diff --git a/src/gui/mousecursor.cpp b/src/gui/mousecursor.cpp index 51bf98482..3a8732161 100644 --- a/src/gui/mousecursor.cpp +++ b/src/gui/mousecursor.cpp @@ -1,7 +1,7 @@ // $Id$ // -// SuperTux - A Jump'n Run -// Copyright (C) 2004 Ricardo Cruz +// SuperTux +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -16,10 +16,16 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #include -#include "video/drawing_context.hpp" #include "gui/mousecursor.hpp" + +#include +#include + +#include "video/surface.hpp" +#include "video/drawing_context.hpp" #include "main.hpp" MouseCursor* MouseCursor::current_ = 0; @@ -28,17 +34,13 @@ extern SDL_Surface* screen; MouseCursor::MouseCursor(std::string cursor_file) : mid_x(0), mid_y(0) { cursor = new Surface(cursor_file); - - cur_state = MC_NORMAL; - SDL_ShowCursor(SDL_DISABLE); + cur_state = MC_NORMAL; } MouseCursor::~MouseCursor() { delete cursor; - - SDL_ShowCursor(SDL_ENABLE); } int MouseCursor::state()