Original Post
The space I want to work with is 640x480, I set the window size to that, but if I make a 640x480 triangle and texture it, its covered up by title bar etc.. anyone have a good way of setting the window size + borders when I start the app? Right now im doing
RECT wrect, crect;
UINT wwidth, wheight;
GetWindowRect(g_hWnd, &wrect);
GetClientRect(g_hWnd, &crect);
wwidth = ((wrect.right - wrect.left) - crect.right) + 640;
wheight = ((wrect.bottom - wrect.top) - crect.bottom) + 480;
SetWindowPos(g_hWnd, NULL, 0, 0, wwidth, wheight, SWP_NOZORDER | SWP_NOMOVE);
That gives me a migrain to look at, but it works. Any thoughts?
Wheres my java getInsets()