Ignore:
Timestamp:
Feb 9, 2000, 9:51:20 AM (26 years ago)
Author:
jeroen
Message:

* empty log message *

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 $ */
    22/* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */
    33
     
    333333    TranslateMessage(&event);             /* translate virtual-key messages*/
    334334#if defined(__WIN32OS2__)
    335     DispatchMessageA(&event);                        /* call the window proc*/
     335    DispatchMessageA(&event);                       /* call the window proc*/
    336336#else
    337337    DispatchMessage(&event);                        /* call the window proc*/
     
    10331033    }
    10341034    /* Be sure to configure window BEFORE map window is done. */
    1035 
    10361035    if (workMask & GLUT_CONFIGURE_WORK) {
    10371036#if defined(_WIN32) || defined(__WIN32OS2__)
     
    10831082      /* Do the repositioning, moving, and push/pop. */
    10841083      SetWindowPos(window->win,
    1085         window->desiredStack == Above ? HWND_TOP : HWND_NOTOPMOST,
     1084        window->desiredStack == (Above ? HWND_TOP : HWND_NOTOPMOST),
    10861085        changes.left, changes.top,
    10871086        changes.right - changes.left, changes.bottom - changes.top,
     
    10981097        window->desiredY = point.y;
    10991098      }
    1100 #else /* !_WIN32 */
     1099#else                                  /* !_WIN32                          */
    11011100      XWindowChanges changes;
    11021101
     
    11141113
    11151114            hints.flags = MWM_HINTS_DECORATIONS;
    1116             hints.decorations = 0;  /* Absolutely no
     1115            hints.decorations = 0;                         /* Absolutely no*/
    11171116                                       decorations. */
    11181117            XChangeProperty(__glutDisplay, window->win,
     
    12051204
    12061205      __glutSetWindow(window);
     1206
    12071207      window->reshape(window->width, window->height);
    12081208      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
    12091228
    12101229      /* Setting the redisplay bit on the first reshape is
     
    12161235      workMask |= GLUT_REDISPLAY_WORK;
    12171236    }
     1237
     1238
    12181239    /* The code below is more involved than otherwise necessary
    12191240       because it is paranoid about the overlay or entire window
     
    13031324     finish and debug work there is. */
    13041325
    1305 
    13061326  workMask |= window->workMask;
    13071327
Note: See TracChangeset for help on using the changeset viewer.