typedef UINT(CALLBACK* GETDPIFORWINDOW)(HWND);
static GETDPIFORWINDOW pGetDpiForWindow;
+BOOL xSetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags)
+{
+ if (!rp_isactive()) {
+ return SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags);
+ }
+}
+
int getdpiformonitor(HMONITOR mon)
{
if (mon) {
r2.right = x + w;
r2.bottom = y + h;
doresizing(mon, nSizingEdge, &r2);
- SetWindowPos(hWindow, NULL, r2.left, r2.top, r2.right - r2.left, r2.bottom - r2.top, 0);
+ xSetWindowPos(hWindow, NULL, r2.left, r2.top, r2.right - r2.left, r2.bottom - r2.top, 0);
}
ptResizePos.x = pt.x;
ptResizePos.y = pt.y;
inresizing = false;
ReleaseCapture();
if (bCanceled) {
- SetWindowPos(hWindow, NULL, rcResizeStartWindowRect.left, rcResizeStartWindowRect.top,
+ xSetWindowPos(hWindow, NULL, rcResizeStartWindowRect.left, rcResizeStartWindowRect.top,
rcResizeStartWindowRect.right - rcResizeStartWindowRect.left, rcResizeStartWindowRect.bottom - rcResizeStartWindowRect.top,
SWP_NOZORDER | SWP_NOACTIVATE);
}
{
if (isfullscreen() == 0) {
RECT* const r = (RECT*)lParam;
- SetWindowPos(hWnd, NULL, r->left, r->top, r->right - r->left, r->bottom - r->top, SWP_NOZORDER | SWP_NOACTIVATE);
+ xSetWindowPos(hWnd, NULL, r->left, r->top, r->right - r->left, r->bottom - r->top, SWP_NOZORDER | SWP_NOACTIVATE);
return 0;
}
break;
extern void unsetminimized (int monid);
extern void setminimized(int monid);
extern int getfocusedmonitor(void);
+BOOL xSetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags);
void finishjob(void);
void init_colors(int monid);
#endif
x = r.left;
y = r.top;
- SetWindowPos(mon->hMainWnd, HWND_TOP, x, y, w + mon->window_extra_width, h + mon->window_extra_height,
+ xSetWindowPos(mon->hMainWnd, HWND_TOP, x, y, w + mon->window_extra_width, h + mon->window_extra_height,
SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING | SWP_NOZORDER);
x = gap;
y = gap;
}
- SetWindowPos(mon->hAmigaWnd, HWND_TOP, x, y, w, h,
+ xSetWindowPos(mon->hAmigaWnd, HWND_TOP, x, y, w, h,
SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING | SWP_NOZORDER);
mon->in_sizemove--;
mon->dpi = dpi;