X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffg_window_mswin.c;h=7aef7a7715d5523e318477b79fe0ae6010ff00fe;hb=14a9bd8b0a7e13dfaffbe5e6c43f24d340fccf86;hp=b09c008c67053aaa79df434fa9ae2485e5e5d221;hpb=88ff42cfa5f0e82e980aea7ba663a0bd148cfa83;p=freeglut diff --git a/src/mswin/fg_window_mswin.c b/src/mswin/fg_window_mswin.c index b09c008..7aef7a7 100644 --- a/src/mswin/fg_window_mswin.c +++ b/src/mswin/fg_window_mswin.c @@ -371,16 +371,6 @@ void fgPlatformSetWindow ( SFG_Window *window ) } -void fghPlatformGetMousePos(SFG_XYUse *mouse_pos) -{ - POINT pos; - GetCursorPos(&pos); - - mouse_pos->X = pos.x; - mouse_pos->Y = pos.y; - mouse_pos->Use = GL_TRUE; -} - /* Returns the width of the window borders based on the window's style. */ void fghGetBorderWidth(const DWORD windowStyle, int* xBorderWidth, int* yBorderWidth) @@ -532,6 +522,8 @@ RECT fghGetClientArea( const SFG_Window *window, BOOL wantPosOutside ) /* * call GetWindowRect() * (this returns the pixel coordinates of the outside of the window) + * cannot use GetClientRect as it seems to return a rect relative to + * the top-left point of the client area (.top and .left are thus always 0) */ GetWindowRect( window->Window.Handle, &windowRect );