Floating Label: remove surface arg from ctor
This commit is contained in:
parent
4472867992
commit
2e6fb0e356
2 changed files with 2 additions and 5 deletions
|
@ -47,7 +47,7 @@ std::stack<std::set<int>> label_contexts;
|
|||
|
||||
namespace font
|
||||
{
|
||||
floating_label::floating_label(const std::string& text, const surface& surf)
|
||||
floating_label::floating_label(const std::string& text)
|
||||
: tex_()
|
||||
, screen_loc_()
|
||||
, alpha_(0)
|
||||
|
@ -71,9 +71,6 @@ floating_label::floating_label(const std::string& text, const surface& surf)
|
|||
, scroll_(ANCHOR_LABEL_SCREEN)
|
||||
, use_markup_(true)
|
||||
{
|
||||
if (surf.get()) {
|
||||
tex_ = texture(surf);
|
||||
}
|
||||
}
|
||||
|
||||
void floating_label::move(double xmove, double ymove)
|
||||
|
|
|
@ -41,7 +41,7 @@ enum LABEL_SCROLL_MODE { ANCHOR_LABEL_SCREEN, ANCHOR_LABEL_MAP };
|
|||
class floating_label
|
||||
{
|
||||
public:
|
||||
floating_label(const std::string& text, const surface& surface = nullptr);
|
||||
floating_label(const std::string& text);
|
||||
|
||||
void set_font_size(int font_size) {font_size_ = font_size;}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue