Skip to content

Commit 1970aed

Browse files
committed
don't map window pos for MonitorFromPoint, fixes incorrect fullscreen on win7 multimonitor
1 parent b046ab6 commit 1970aed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/weebp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210

211211
#define WP_VERSION_MAJOR 1 /* non-backwards-compatible changes */
212212
#define WP_VERSION_MINOR 3 /* backwards compatible api changes */
213-
#define WP_VERSION_PATCH 1 /* backwards-compatible changes */
213+
#define WP_VERSION_PATCH 2 /* backwards-compatible changes */
214214

215215
#define STRINGIFY_(x) #x
216216
#define STRINGIFY(x) STRINGIFY_(x)
@@ -811,7 +811,6 @@ int wp_fullscreen(wnd_t wnd)
811811
return 1;
812812
}
813813

814-
MapWindowPoints(0, wp_id(), (LPPOINT)&current_rect, 1);
815814
mon = MonitorFromPoint(*(POINT*)&current_rect, MONITOR_DEFAULTTONEAREST);
816815
if (!mon) {
817816
wp_err("MonitorFromWindow failed, GLE=%08X", GetLastError());

0 commit comments

Comments
 (0)