Skip to content

Commit

Permalink
Adjust progress bar size according to screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kojirion committed Mar 22, 2016
1 parent f9c57cb commit 8650e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void Application::run()
auto progressBar = sfg::ProgressBar::Create();
auto progressBarWidth = screenWidth/6.f;
progressBar->SetPosition({screenWidth/2.f - progressBarWidth/2.f, 0.f});
progressBar->SetRequisition({progressBarWidth, 40.f});
progressBar->SetRequisition({progressBarWidth, 4*screenHeight/100.f});
m_desktop.Add(progressBar);

float left(-screenWidth), right(screenWidth);
Expand Down

0 comments on commit 8650e99

Please sign in to comment.