X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgui%2Fbutton.cpp;h=6288665f3c916615e283ce5c1390f1d451fe3345;hb=ba5f95533903ed6190b0fddede258c86540afffa;hp=6b16a130d221d6c55a4dae1b6fe4526bc8fd9a4e;hpb=2f7bf5676ef8b6b9ff3cf28468efe536888808b5;p=supertux.git diff --git a/src/gui/button.cpp b/src/gui/button.cpp index 6b16a130d..6288665f3 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -19,14 +19,16 @@ #include +#include "button.hpp" + #include #include #include "main.hpp" -#include "button.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; @@ -94,7 +96,7 @@ switch(event.type) state = BT_SELECTED; } break; - case SDL_KEYDOWN: // key pressed + case SDL_KEYDOWN: // key pressed if(event.key.keysym.sym == binding) state = BT_SELECTED; break;