no. but your GetClientRect solution is not proper either, since the dimensions will match those retrieved from the message queve and fix something that is not broken.Originally Posted by Lowercase
my solution:
find call to CreateWindowExA and make it use: Width - 1
after calling showwindow, setfocus and setforeground window, etc.. add this:
// fix the window and window projection, this will also call GLResizeWnd
MoveWindow(h_wnd,
(GetSystemMetrics(SM_CXSCREEN) div 2) - (Width div 2),
(GetSystemMetrics(SM_CYSCREEN) div 2) - (Height div 2),
Width, Height, True);
Bookmarks