NFSMWExOpts icon indicating copy to clipboard operation
NFSMWExOpts copied to clipboard

Windowed mode offset

Open dan3988 opened this issue 6 years ago • 2 comments

I have 2 monitors, one is 4k, the other is 1080p. When I turn on windowed borderless, whenever I launch the game the window is offset image

I have fixed it by adding this in the loop:

if (WindowedMode == 1)
{
	RECT n_wRect;
	GetWindowRect(windowHandle, &n_wRect);
	if (n_wRect.left > 0 || n_wRect.top > 0)
	{
		SetWindowPos(windowHandle, NULL, 0, 0, n_wRect.right - n_wRect.left, n_wRect.bottom - n_wRect.top, 0);
	}
}

dan3988 avatar Jul 08 '18 00:07 dan3988

Same issue here

JOHN30011887 avatar Sep 18 '18 17:09 JOHN30011887

Can confirm.

Keith94 avatar Jan 09 '19 07:01 Keith94