Path: blob/main/cad/PrusaSlicer/files/patch-src_slic3r_GUI_GUI__Utils.cpp
18157 views
--- src/slic3r/GUI/GUI_Utils.cpp.orig 2024-12-20 11:54:34 UTC1+++ src/slic3r/GUI/GUI_Utils.cpp2@@ -53,7 +53,7 @@ void on_window_geometry(wxTopLevelWindow *tlw, std::fu3// cf. https://groups.google.com/forum/#!topic/wx-users/c7ntMt6piRI4// OTOH the geometry is available very soon, so we can call the callback right away5callback();6-#elif defined __linux__7+#elif defined(__linux__) || defined(__FreeBSD__)8tlw->Bind(wxEVT_SHOW, [=](wxShowEvent &evt) {9// On Linux, the geometry is only available after wxEVT_SHOW + CallAfter10// cf. https://groups.google.com/forum/?pli=1#!topic/wx-users/fERSXdpVwAI11@@ -121,7 +121,7 @@ int get_dpi_for_window(const wxWindow *window)12if (hdc == NULL) { return DPI_DEFAULT; }13return GetDeviceCaps(hdc, LOGPIXELSX);14}15-#elif defined __linux__16+#elif defined(__linux__) || defined(__FreeBSD__)17// TODO18return DPI_DEFAULT;19#elif defined __APPLE__202122