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/win32_winproc.c

    r2996 r3022  
    1 /* $Id: win32_winproc.c,v 1.3 2000-03-04 19:10:17 jeroen Exp $ */
     1/* $Id: win32_winproc.c,v 1.4 2000-03-05 10:19:39 jeroen Exp $ */
    22/* Copyright (c) Nate Robins, 1997. */
    33/* portions Copyright (c) Mark Kilgard, 1997, 1998. */
     
    4141      window->visState = visState;
    4242      __glutSetWindow(window);
    43       window->windowStatus(visState);
     43      ((GLUTwindowStatusCB)(window->windowStatus))(visState);
    4444    }
    4545  }
     
    157157        /* Delete is an ASCII character. */
    158158        if (window->keyboardUp) {
    159           window->keyboardUp((unsigned char) 127, point.x, point.y);
     159          ((GLUTkeyboardCB)(window->keyboardUp))((unsigned char) 127, point.x, point.y);
    160160        }
    161161        return 0;
     
    176176            if (!(__glutModifierMask & ShiftMask))
    177177              key = tolower(key);
    178             window->keyboardUp((unsigned char) key, point.x, point.y);
     178            ((GLUTkeyboardCB)(window->keyboardUp))((unsigned char) key, point.x, point.y);
    179179          }
    180180        }
     
    222222      if (GetKeyState(VK_MENU) < 0)
    223223        __glutModifierMask |= Mod1Mask;
    224       window->keyboard((unsigned char)wParam, point.x, point.y);
     224      ((GLUTkeyboardCB)(window->keyboard))((unsigned char)wParam, point.x, point.y);
    225225      __glutModifierMask = (unsigned int) ~0;
    226226    }
     
    365365          if (GetKeyState(VK_MENU) < 0)
    366366            __glutModifierMask |= Mod1Mask;
    367           window->keyboard(key, point.x, point.y);
     367          ((GLUTkeyboardCB)(window->keyboard))(key, point.x, point.y);
    368368          __glutModifierMask = (unsigned int) ~0;
    369369
     
    428428        if (GetKeyState(VK_MENU) < 0)
    429429          __glutModifierMask |= Mod1Mask;
    430         window->mouse(button, GLUT_DOWN, x, y);
     430        ((GLUTmouseCB)(window->mouse))(button, GLUT_DOWN, x, y);
    431431        __glutModifierMask = (unsigned int)~0;
    432432      } else {
     
    493493      if (GetKeyState(VK_MENU) < 0)
    494494        __glutModifierMask |= Mod1Mask;
    495       window->mouse(button, GLUT_UP, x, y);
     495      ((GLUTmouseCB)(window->mouse))(button, GLUT_UP, x, y);
    496496      __glutModifierMask = (unsigned int)~0;
    497497    } else {
     
    528528#if 0
    529529     if (__glutIdleFunc)
    530        __glutIdleFunc();
     530       ((GLUTidleCB)(__glutIdleFunc))();
    531531#endif
    532532    if (__glutTimerList)
     
    576576            (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) {
    577577          __glutSetWindow(window);
    578           window->motion(x, y);
     578          ((GLUTmotionCB)(window->motion))(x, y);
    579579        }
    580580        /* If passive motion function registered _and_
     
    586586                  0)) {
    587587          __glutSetWindow(window);
    588           window->passive(x, y);
     588          ((GLUTpassiveCB)(window->passive))(x, y);
    589589        }
    590590      }
     
    659659      if (window->entry) {
    660660        __glutSetWindow(window);
    661         window->entry(GLUT_ENTERED);
     661        ((GLUTentryCB)(window->entry))(GLUT_ENTERED);
    662662        /* XXX Generation of fake passive notify?  See how much
    663663           work the X11 code does to support fake passive notify
     
    689689      if (window->entry) {
    690690        __glutSetWindow(window);
    691         window->entry(GLUT_LEFT);
     691        ((GLUTentryCB)(window->entry))(GLUT_LEFT);
    692692      }
    693693      if (window->joystick && __glutCurrentWindow) {
Note: See TracChangeset for help on using the changeset viewer.