From 014d134823163137fe32afc4821d2b19649f950c Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Wed, 9 May 2018 21:56:15 -0500 Subject: [PATCH] Utility function for generating scaled points from wxPoints. --- src/GUI/misc_ui.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/misc_ui.hpp b/src/GUI/misc_ui.hpp index 28c28377d..b22c73b3a 100644 --- a/src/GUI/misc_ui.hpp +++ b/src/GUI/misc_ui.hpp @@ -14,6 +14,7 @@ #include "Settings.hpp" #include "Log.hpp" +#include "Point.hpp" /// Macro to build std::wstring that slic3r::log expects using << syntax of wxString @@ -133,6 +134,8 @@ wxString encode_path(const wxString& in); std::vector open_model(wxWindow* parent, const Settings& settings, wxWindow* top); +inline Slic3r::Point new_scale(const wxPoint& p) { return Slic3r::Point::new_scale(p.x, p.y); } + }} // namespace Slic3r::GUI #endif // MISC_UI_HPP