X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_menu.c;h=6a7d96d00c7999ec9f3a539eb3af99b49c7ed107;hb=eda45df83952e3e92ec4adacc8c942085e132077;hp=ff1b21e7d4f7353f1f7d360dbd5030e1ef724bd9;hpb=88ff42cfa5f0e82e980aea7ba663a0bd148cfa83;p=freeglut diff --git a/src/fg_menu.c b/src/fg_menu.c index ff1b21e..6a7d96d 100644 --- a/src/fg_menu.c +++ b/src/fg_menu.c @@ -76,6 +76,7 @@ static float menu_pen_hback [4] = FREEGLUT_MENU_PEN_HBACK_COLORS; extern GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y ); +extern void fghPlatformGetCursorPos(SFG_XYUse *mouse_pos); /* -- PRIVATE FUNCTIONS ---------------------------------------------------- */ @@ -721,7 +722,7 @@ void fgDeactivateMenu( SFG_Window *window ) { /* Get cursor position on screen and convert to relative to parent_window's client area */ SFG_XYUse mouse_pos; - fghPlatformGetMousePos(&mouse_pos); + fghPlatformGetCursorPos(&mouse_pos); mouse_pos.X -= glutGet( GLUT_WINDOW_X ); mouse_pos.Y -= glutGet( GLUT_WINDOW_Y );