MINGW-packages/mingw-w64-gnuplot/02-wxwidgets-3.2.patch
Raed Rizqie f09e534fe3
gnuplot: fix path translation (#24723)
- rebase patches
- fix path translation
- fix parallel build
2025-07-12 19:10:15 +03:00

21 lines
642 B
Diff

--- a/src/wxterminal/wxt_gui.cpp
+++ b/src/wxterminal/wxt_gui.cpp
@@ -623,7 +623,7 @@
RECT rect;
rect.left = rect.top = 0;
- unsigned dpi = GetDPI();
+ unsigned dpi = GetDPI().GetWidth();
rect.right = MulDiv(panel->plot.device_xmax, dpi, 10);
rect.bottom = MulDiv(panel->plot.device_ymax, dpi, 10);
HDC hmf = CreateEnhMetaFileW(NULL, fullpathFilename.wc_str(), &rect, NULL);
@@ -693,7 +693,7 @@
wxSize ppi = wxdc->GetPPI();
unsigned dpi = 96;
#ifdef _WIN32
- dpi = GetDPI();
+ dpi = GetDPI().GetWidth();
#endif
double scaleX = ppi.GetWidth() / (double) dpi;
double scaleY = ppi.GetHeight() / (double) dpi;