From: <dc...@us...> - 2014-10-12 06:37:07
|
Revision: 1711 http://sourceforge.net/p/freeglut/code/1711 Author: dcnieho Date: 2014-10-12 06:37:00 +0000 (Sun, 12 Oct 2014) Log Message: ----------- change some initializer use that some compilers choke on (even that technically may a bug in the compiler, I think) Modified Paths: -------------- trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c Modified: trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c =================================================================== --- trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c 2014-10-12 06:21:32 UTC (rev 1710) +++ trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c 2014-10-12 06:37:00 UTC (rev 1711) @@ -752,7 +752,9 @@ /* Get mouse position at time of message */ DWORD mouse_pos_dw = GetMessagePos(); - POINT mouse_pos = {GET_X_LPARAM(mouse_pos_dw), GET_Y_LPARAM(mouse_pos_dw)}; + POINT mouse_pos; + mouse_pos.x = GET_X_LPARAM(mouse_pos_dw); + mouse_pos.y = GET_Y_LPARAM(mouse_pos_dw); ScreenToClient( window->Window.Handle, &mouse_pos ); hwnd = ChildWindowFromPoint(window->Window.Handle, mouse_pos); @@ -947,7 +949,9 @@ /* For child window, we should return relative to upper-left * of parent's client area. */ - POINT topleft = {windowRect.left,windowRect.top}; + POINT topleft; + topleft.x = windowRect.left; + topleft.y = windowRect.top; ScreenToClient(window->Parent->Window.Handle,&topleft); windowRect.left = topleft.x; @@ -1763,4 +1767,4 @@ } ShowWindow( win->Window.Handle, cmdShow ); -} \ No newline at end of file +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |