Add Windows support.
This commit is contained in:
parent
ee51f3ee09
commit
683ba5447f
37 changed files with 477 additions and 113 deletions
|
@ -48,7 +48,7 @@ void Button::OnPaintEvent(const PaintEvent* event)
|
|||
AddBackground(event);
|
||||
if(!mLabel.empty())
|
||||
{
|
||||
unsigned fontOffset = mLabel.size() * 4;
|
||||
unsigned fontOffset = unsigned(mLabel.size()) * 4;
|
||||
auto middle = DiscretePoint(mLocation.GetX() + mSize.mWidth/2 - fontOffset,
|
||||
mLocation.GetY() + mSize.mHeight/2 + 4);
|
||||
auto textLayer = VisualLayer::Create();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue