Changeset 2689 for trunk/src/opengl/glut/glut_event.c
- Timestamp:
- Feb 9, 2000, 9:51:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glut/glut_event.c
r2595 r2689 1 1 /* $Id: glut_event.c,v 1.2 2000-02-09 08:46:09 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */ 3 3 … … 333 333 TranslateMessage(&event); /* translate virtual-key messages*/ 334 334 #if defined(__WIN32OS2__) 335 DispatchMessageA(&event); 335 DispatchMessageA(&event); /* call the window proc*/ 336 336 #else 337 337 DispatchMessage(&event); /* call the window proc*/ … … 1033 1033 } 1034 1034 /* Be sure to configure window BEFORE map window is done. */ 1035 1036 1035 if (workMask & GLUT_CONFIGURE_WORK) { 1037 1036 #if defined(_WIN32) || defined(__WIN32OS2__) … … 1083 1082 /* Do the repositioning, moving, and push/pop. */ 1084 1083 SetWindowPos(window->win, 1085 window->desiredStack == Above ? HWND_TOP : HWND_NOTOPMOST,1084 window->desiredStack == (Above ? HWND_TOP : HWND_NOTOPMOST), 1086 1085 changes.left, changes.top, 1087 1086 changes.right - changes.left, changes.bottom - changes.top, … … 1098 1097 window->desiredY = point.y; 1099 1098 } 1100 #else /* !_WIN32*/1099 #else /* !_WIN32 */ 1101 1100 XWindowChanges changes; 1102 1101 … … 1114 1113 1115 1114 hints.flags = MWM_HINTS_DECORATIONS; 1116 hints.decorations = 0; /* Absolutely no1115 hints.decorations = 0; /* Absolutely no*/ 1117 1116 decorations. */ 1118 1117 XChangeProperty(__glutDisplay, window->win, … … 1205 1204 1206 1205 __glutSetWindow(window); 1206 1207 1207 window->reshape(window->width, window->height); 1208 1208 window->forceReshape = False; 1209 1210 #ifdef __WIN32OS2__ 1211 /* JvdH - 03/02/2000 */ 1212 /* FIXME: This is a rather stupid hack... */ 1213 /* The client area appears transparent... */ 1214 /* By twice swapping the ZORDER the client area is repainted... */ 1215 /* I'd like a better fix, but for now this seems to work */ 1216 SetWindowPos(window->win, 1217 HWND_BOTTOM, 1218 0,0, 1219 0,0, 1220 SWP_NOMOVE | SWP_NOSIZE); 1221 1222 SetWindowPos(window->win, 1223 HWND_TOP, 1224 0,0, 1225 0,0, 1226 SWP_NOMOVE | SWP_NOSIZE); 1227 #endif 1209 1228 1210 1229 /* Setting the redisplay bit on the first reshape is … … 1216 1235 workMask |= GLUT_REDISPLAY_WORK; 1217 1236 } 1237 1238 1218 1239 /* The code below is more involved than otherwise necessary 1219 1240 because it is paranoid about the overlay or entire window … … 1303 1324 finish and debug work there is. */ 1304 1325 1305 1306 1326 workMask |= window->workMask; 1307 1327
Note:
See TracChangeset
for help on using the changeset viewer.