Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_GUI__Utils.cpp
34610 views
1
--- src/slic3r/GUI/GUI_Utils.cpp.orig 2025-10-02 17:32:12 UTC
2
+++ src/slic3r/GUI/GUI_Utils.cpp
3
@@ -133,7 +133,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
@@ -201,7 +201,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