Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/cad/PrusaSlicer/files/patch-src_slic3r_GUI_GUI__Utils.cpp
18157 views
1
--- src/slic3r/GUI/GUI_Utils.cpp.orig 2024-12-20 11:54:34 UTC
2
+++ src/slic3r/GUI/GUI_Utils.cpp
3
@@ -53,7 +53,7 @@ void on_window_geometry(wxTopLevelWindow *tlw, std::fu
4
// cf. https://groups.google.com/forum/#!topic/wx-users/c7ntMt6piRI
5
// OTOH the geometry is available very soon, so we can call the callback right away
6
callback();
7
-#elif defined __linux__
8
+#elif defined(__linux__) || defined(__FreeBSD__)
9
tlw->Bind(wxEVT_SHOW, [=](wxShowEvent &evt) {
10
// On Linux, the geometry is only available after wxEVT_SHOW + CallAfter
11
// cf. https://groups.google.com/forum/?pli=1#!topic/wx-users/fERSXdpVwAI
12
@@ -121,7 +121,7 @@ int get_dpi_for_window(const wxWindow *window)
13
if (hdc == NULL) { return DPI_DEFAULT; }
14
return GetDeviceCaps(hdc, LOGPIXELSX);
15
}
16
-#elif defined __linux__
17
+#elif defined(__linux__) || defined(__FreeBSD__)
18
// TODO
19
return DPI_DEFAULT;
20
#elif defined __APPLE__
21
22