Improvements to button menu and keyboard controls
This commit is contained in:
@ -23,13 +23,13 @@ void MenuButton::set_hover(bool is_hovering)
|
||||
|
||||
void MenuButton::draw(SDL_Surface* display, int colour, int background_colour)
|
||||
{
|
||||
SDL_Rect pen = {x, y, 100, 40};
|
||||
SDL_Rect pen = {x, y, 80, 20};
|
||||
|
||||
SDL_FillRect(display, &pen, background_colour);
|
||||
|
||||
int temp_colour = 0x000000;
|
||||
|
||||
DrawUtils::draw_text(display, text, x + 50, y + 20, font, colour, 1, 1);
|
||||
DrawUtils::draw_text(display, text, x + 40, y + 10, font, colour, 1, 1);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user