X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgui%2Fbutton.cpp;h=6b16a130d221d6c55a4dae1b6fe4526bc8fd9a4e;hb=ca967dcf4ee89f99880355be00782d1cd047be6a;hp=05ef76c5199f1bdd3dd7e885eb673965233a7fdc;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/gui/button.cpp b/src/gui/button.cpp index 05ef76c51..6b16a130d 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -63,11 +63,11 @@ if(state == BT_SHOW_INFO) offset = Vector(size.x, 0); else offset = Vector(-30, -size.y/2); - context.draw_text(info_font, info, pos + offset, LEFT_ALLIGN, LAYER_GUI+2); + context.draw_text(info_font, info, pos + offset, ALIGN_LEFT, LAYER_GUI+2); if(binding != 0) context.draw_text(info_font, "(" + std::string(SDL_GetKeyName(binding)) + ")", pos + offset + Vector(0,12), - LEFT_ALLIGN, LAYER_GUI+2); + ALIGN_LEFT, LAYER_GUI+2); } context.draw_surface_part(image, Vector(0,0), size, pos, LAYER_GUI+1); @@ -162,7 +162,7 @@ for(Buttons::iterator i = buttons.begin(); i != buttons.end(); ++i) i->pos.y + i->size.y > (row + buttons_box.y) * buttons_size.y) continue; - i->draw(context, i->id == button_selected ? true : false); + i->draw(context, i->id == button_selected); } context.pop_transform(); }