projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snv ignore version.h, add includes for gcc 4.3.3.
[supertux.git]
/
src
/
gui
/
button.cpp
diff --git
a/src/gui/button.cpp
b/src/gui/button.cpp
index
6b16a13
..
6288665
100644
(file)
--- a/
src/gui/button.cpp
+++ b/
src/gui/button.cpp
@@
-19,14
+19,16
@@
#include <config.h>
#include <config.h>
+#include "button.hpp"
+
#include <SDL.h>
#include <iostream>
#include "main.hpp"
#include <SDL.h>
#include <iostream>
#include "main.hpp"
-#include "button.hpp"
#include "mousecursor.hpp"
#include "video/font.hpp"
#include "video/surface.hpp"
#include "mousecursor.hpp"
#include "video/font.hpp"
#include "video/surface.hpp"
+#include "video/drawing_context.hpp"
Font* Button::info_font = 0;
extern SDL_Surface* screen;
Font* Button::info_font = 0;
extern SDL_Surface* screen;
@@
-94,7
+96,7
@@
switch(event.type)
state = BT_SELECTED;
}
break;
state = BT_SELECTED;
}
break;
- case SDL_KEYDOWN: // key pressed
+ case SDL_KEYDOWN:
// key pressed
if(event.key.keysym.sym == binding)
state = BT_SELECTED;
break;
if(event.key.keysym.sym == binding)
state = BT_SELECTED;
break;