Show decimals in the cross visual tool only when the video resolution is greater than the script resolution

Originally committed to SVN as r5872.
This commit is contained in:
Thomas Goyne 2011-11-17 18:21:30 +00:00
parent f863e28479
commit ff03168f4c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ void VisualToolCross::Draw() {
gl.ClearInvert();
Vector2D t = ToScriptCoords(shift_down ? video_res - mouse_pos : mouse_pos);
wxString mouse_text = t.Str();
wxString mouse_text = video_res.X() > script_res.X() ? t.Str() : t.DStr();
int tw, th;
gl_text->SetFont("Verdana", 12, true, false);