<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8850d27178d617bb67c9f22d53b84f461020bc31">https://github.com/macports/macports-ports/commit/8850d27178d617bb67c9f22d53b84f461020bc31</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8850d27178d dosbox-x: use explict NSPoint to CGPoint conversion
</span>8850d27178d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8850d27178d617bb67c9f22d53b84f461020bc31
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Thu Sep 3 08:52:02 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> dosbox-x: use explict NSPoint to CGPoint conversion
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> fixes 32bit builds
</span>---
emulators/dosbox-x/Portfile | 3 ++-
emulators/dosbox-x/files/patch-menu-osx-cgpointfix.diff | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/dosbox-x/Portfile b/emulators/dosbox-x/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 734ee35f50d..3a286f99d00 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/emulators/dosbox-x/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/dosbox-x/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,7 +31,8 @@ github.tarball_from archive
</span>
patchfiles patch-futimens.diff \
patch-mactypes.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-convertbasetorect.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-convertbasetorect.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-menu-osx-cgpointfix.diff
</span>
supported_archs i386 x86_64
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/emulators/dosbox-x/files/patch-menu-osx-cgpointfix.diff b/emulators/dosbox-x/files/patch-menu-osx-cgpointfix.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ac57210405b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/emulators/dosbox-x/files/patch-menu-osx-cgpointfix.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/gui/menu_osx.mm.orig 2020-09-02 23:45:46.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/gui/menu_osx.mm 2020-09-02 23:46:11.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -517,7 +517,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pt.y = (prct.origin.y + prct.size.height) - pt.y;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- err = CGGetDisplaysWithPoint(pt,1,&did,&cnt);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ err = CGGetDisplaysWithPoint(CGPointMake(pt.x,pt.y),1,&did,&cnt);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* This might happen if our window is so far off the screen that the center point does not match any monitor */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (err != kCGErrorSuccess) {
</span></pre><pre style='margin:0'>
</pre>