Write text after highlighting

This commit is contained in:
simon.kagstrom 2009-11-24 06:25:17 +00:00
parent 4440977e08
commit a9aa219f4b

View File

@ -142,10 +142,6 @@ void Menu::draw(SDL_Surface *where, int x, int y, int w, int h)
this->highlightBackground(where, x_start, cur_y, tw, th); this->highlightBackground(where, x_start, cur_y, tw, th);
} }
/* And print the text on top */
this->printText(where, msg, this->text_color,
x_start, cur_y, w, h);
if (IS_SUBMENU(msg)) if (IS_SUBMENU(msg))
{ {
submenu_t *p_submenu = this->findSubmenu(i); submenu_t *p_submenu = this->findSubmenu(i);
@ -184,6 +180,10 @@ void Menu::draw(SDL_Surface *where, int x, int y, int w, int h)
cur_y, tw, th); cur_y, tw, th);
free(p); free(p);
} }
/* And print the text on top */
this->printText(where, msg, this->text_color,
x_start, cur_y, w, h);
} }
} }