Ignore:
Timestamp:
Mar 5, 2000, 11:21:10 AM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/glut/glut_event.c

    r3000 r3022  
    1 /* $Id: glut_event.c,v 1.4 2000-03-04 19:33:43 jeroen Exp $ */
     1/* $Id: glut_event.c,v 1.5 2000-03-05 10:19:38 jeroen Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */
    33
     
    161161  while (IS_AT_OR_AFTER(__glutTimerList->timeout, now)) {
    162162    timer = __glutTimerList;
    163     timer->func(timer->value);
     163    ((GLUTtimerCB)(timer->func))(timer->value);
    164164    __glutTimerList = timer->next;
    165165    timer->next = freeTimerList;
     
    245245      window->visState = GLUT_HIDDEN;
    246246      __glutSetWindow(window);
    247       window->windowStatus(GLUT_HIDDEN);
     247      ((GLUTwindowStatusCB)(window->windowStatus))(GLUT_HIDDEN);
    248248    }
    249249    /* An unmap is only reported on a single window; its
     
    375375               respect to the XResizeWindow request! */
    376376            glXWaitX();
    377             window->reshape(width, height);
     377            ((GLUTreshapeCB)(window->reshape))(width, height);
    378378            window->forceReshape = False;
    379379            /* A reshape should be considered like posting a
     
    449449              __glutSetWindow(window);
    450450              __glutModifierMask = event.xbutton.state;
    451               window->mouse(event.xbutton.button - 1,
     451              ((GLUTmouseCB)(window->mouse))(event.xbutton.button - 1,
    452452                event.type == ButtonRelease ?
    453453                GLUT_UP : GLUT_DOWN,
     
    472472              (Button1Mask | Button2Mask | Button3Mask)) {
    473473              __glutSetWindow(window);
    474               window->motion(event.xmotion.x, event.xmotion.y);
     474              ((GLUTmotionCB)(window->motion))(event.xmotion.x, event.xmotion.y);
    475475            }
    476476            /* If passive motion function registered _and_
     
    482482                0)) {
    483483              __glutSetWindow(window);
    484               window->passive(event.xmotion.x,
     484              ((GLUTpassiveCB)(window->passive))(event.xmotion.x,
    485485                event.xmotion.y);
    486486            }
     
    532532            __glutSetWindow(window);
    533533            __glutModifierMask = event.xkey.state;
    534             keyboard(tmp[0],
     534            ((GLUTkeyboardCB)(keyboard))(tmp[0],
    535535              event.xkey.x, event.xkey.y);
    536536            __glutModifierMask = ~0;
     
    644644            /* The Delete character is really an ASCII key. */
    645645            __glutSetWindow(window);
    646             keyboard(127,  /* ASCII Delete character. */
     646            ((GLUTkeyboardCB)(keyboard))(127,  /* ASCII Delete character. */
    647647              event.xkey.x, event.xkey.y);
    648648            goto skip;
     
    700700                window->entryState = EnterNotify;
    701701                __glutSetWindow(window);
    702                 window->entry(GLUT_ENTERED);
     702                ((GLUTentryCB)(window->entry))(GLUT_ENTERED);
    703703
    704704                if (__glutMappedMenu) {
     
    719719                  if (window && window->passive && window->win == xid) {
    720720                    __glutSetWindow(window);
    721                     window->passive(event.xcrossing.x, event.xcrossing.y);
     721                    ((GLUTpassiveCB)(window->passive))(event.xcrossing.x, event.xcrossing.y);
    722722                  }
    723723                }
     
    748748                window->entryState = LeaveNotify;
    749749                __glutSetWindow(window);
    750                 window->entry(GLUT_LEFT);
     750                ((GLUTentryCB)(window->entry))(GLUT_LEFT);
    751751              }
    752752            }
    753753          } else if (window->passive) {
    754754            __glutSetWindow(window);
    755             window->passive(event.xcrossing.x, event.xcrossing.y);
     755            ((GLUTpassiveCB)(window->passive))(event.xcrossing.x, event.xcrossing.y);
    756756          }
    757757        }
     
    789789              window->visState = visState;
    790790              __glutSetWindow(window);
    791               window->windowStatus(visState);
     791              ((GLUTwindowStatusCB)(window->windowStatus))(visState);
    792792            }
    793793          }
     
    950950  /* Make sure idle func still exists! */
    951951  if (__glutIdleFunc) {
    952     __glutIdleFunc();
     952    ((GLUTidleCB)(__glutIdleFunc))();
    953953  }
    954954}
     
    959959processWindowWorkList(GLUTwindow * window)
    960960{
     961//_interrupt(3);
     962
    961963  int workMask;
    962964
     
    12051207      __glutSetWindow(window);
    12061208
    1207       /* JvdH: DO NOT REMPVE THE EXPLICIT TYPECAST TO THIS GLAPIENTRY   */
    1208       /* FUNCTION, OR THE COMPILER WILL NUKE THE STACK WHEN OPTIMIZING! */
    1209       /* VACPP obviously has a bug, and will adjust the ESP after the   */
    1210       /* call, but the callee has already done so!!!!                   */
    12111209      ((GLUTreshapeCB)(window->reshape))(window->width, window->height);
    12121210      window->forceReshape = False;
     
    12621260        __glutSetWindow(window);
    12631261        window->usedSwapBuffers = 0;
    1264         window->display();
     1262        ((GLUTdisplayCB)(window->display))();
    12651263        __glutWindowDamaged = 0;
    12661264
     
    12811279          __glutWindowDamaged = (workMask & GLUT_OVERLAY_REPAIR_WORK);
    12821280          __glutSetWindow(window);
    1283           window->overlay->display();
     1281          ((GLUTdisplayCB)(window->overlay->display))();
    12841282          __glutWindowDamaged = 0;
    12851283        } else {
     
    13041302      __glutSetWindow(window);
    13051303      window->usedSwapBuffers = 0;
    1306       window->display();
     1304      ((GLUTdisplayCB)(window->display))();
    13071305      __glutWindowDamaged = 0;
    13081306
Note: See TracChangeset for help on using the changeset viewer.