Skip to content

Commit

Permalink
Revert GUI1 multimenu part of 07e993c
Browse files Browse the repository at this point in the history
This cased issues when building with Clang, and this file will be dropped post-1.13.6 anyway.
  • Loading branch information
Vultraz committed Oct 13, 2016
1 parent 7748822 commit 80d2f0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/widgets/multimenu.cpp
Expand Up @@ -22,11 +22,11 @@ namespace gui {
menu(video, items, click_selects, max_height, max_width, sorter_obj, menu_style, auto_join),
active_items_(items.size(), false) {}

void multimenu::draw_row(const size_t row_index, SDL_Rect &rect, menu::ROW_TYPE type) {
void multimenu::draw_row(const size_t row_index, const SDL_Rect &rect, menu::ROW_TYPE type) {
surface img = image::get_image(active_items_[row_index]
? "buttons/checkbox-pressed.png"
: "buttons/checkbox.png");
sdl_blit(img, nullptr, video().getSurface(), &rect);
blit_surface(img, nullptr, video().getSurface(), &rect);
SDL_Rect newrect = {
Sint16 (rect.x + img->w + 2),
rect.y,
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/multimenu.hpp
Expand Up @@ -62,7 +62,7 @@ namespace gui {
int last_changed();

protected:
virtual void draw_row(const size_t row_index, SDL_Rect& rect, ROW_TYPE type);
virtual void draw_row(const size_t row_index, const SDL_Rect& rect, ROW_TYPE type);
virtual void handle_event(const SDL_Event& event);

/**
Expand Down

0 comments on commit 80d2f0a

Please sign in to comment.