diff --git a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp index 2e6f7def..db8a4ea9 100644 --- a/src/gui/sdl_mapper.cpp +++ b/src/gui/sdl_mapper.cpp @@ -712,7 +712,7 @@ public: if (abs(event->jaxis.value)<25000) return 0; return CreateAxisBind(event->jaxis.axis,event->jaxis.value>0); } else if (event->type==SDL_JOYBUTTONDOWN) { - if (event->button.which!=stick) return 0; + if (event->jbutton.which!=stick) return 0; #if defined (REDUCE_JOYSTICK_POLLING) return CreateButtonBind(event->jbutton.button%button_wrap); #else @@ -1690,7 +1690,7 @@ static void SetActiveEvent(CEvent * event) { } static void DrawButtons(void) { - SDL_FillRect(mapper.surface,0,0); + SDL_FillRect(mapper.surface,0,CLR_BLACK); SDL_LockSurface(mapper.surface); for (CButton_it but_it = buttons.begin();but_it!=buttons.end();but_it++) { (*but_it)->Draw();