Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #46 from Liberus/precision-increase
Browse files Browse the repository at this point in the history
Increase precision of values printed in main window
  • Loading branch information
csantosbh authored Nov 29, 2018
2 parents 7b1a5a1 + 7e2e955 commit 8fbd240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/main_window/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void MainWindow::update_status_bar()

vec4 mouse_pos = get_stage_coordinates(mouse_x, mouse_y);

message << std::fixed << std::setprecision(1) << "("
message << std::fixed << std::setprecision(3) << "("
<< static_cast<int>(floor(mouse_pos.x())) << ", "
<< static_cast<int>(floor(mouse_pos.y())) << ")\t"
<< cam->compute_zoom() * 100.0 << "%";
Expand Down

0 comments on commit 8fbd240

Please sign in to comment.