Changeset 3579 for trunk/src/opengl/glut


Ignore:
Timestamp:
May 20, 2000, 3:48:23 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

Location:
trunk/src/opengl/glut
Files:
8 edited

Legend:

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

    r3083 r3579  
    1 /* $Id: glut_bitmap.c,v 1.3 2000-03-11 15:07:44 sandervl Exp $ */
     1/* $Id: glut_bitmap.c,v 1.4 2000-05-20 13:48:22 jeroen Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994. */
    33
     
    1717  GLint skiprows, skippixels, alignment;
    1818
    19 #if defined(_WIN32)
     19#if defined(_WIN32) || defined(__WIN32OS2__)
    2020  fontinfo = (BitmapFontPtr) __glutFont(font);
    2121#else
  • trunk/src/opengl/glut/glut_cursor.c

    r3083 r3579  
    1 /* $Id: glut_cursor.c,v 1.3 2000-03-11 15:07:44 sandervl Exp $ */
     1/* $Id: glut_cursor.c,v 1.4 2000-05-20 13:48:22 jeroen Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1995, 1998. */
    33
     
    165165    case GLUT_CURSOR_FULL_CROSSHAIR:
    166166#if defined(_WIN32) || defined(__WIN32OS2__)
    167       xcursor = IDC_CROSS;
     167      xcursor = (Cursor)IDC_CROSS;
    168168#else
    169169      if (fullCrosshairCusor == None) {
  • trunk/src/opengl/glut/glut_event.c

    r3086 r3579  
    1 /* $Id: glut_event.c,v 1.9 2000-03-11 17:07:44 sandervl Exp $ */
     1/* $Id: glut_event.c,v 1.10 2000-05-20 13:48:22 jeroen Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */
    33
     
    10731073
    10741074      /* Do the repositioning, moving, and push/pop. */
     1075
    10751076      SetWindowPos(window->win,
    1076         window->desiredStack == (Above ? HWND_TOP : HWND_NOTOPMOST),
     1077        window->desiredStack == Above ? HWND_TOP : HWND_NOTOPMOST,
    10771078        changes.left, changes.top,
    10781079        changes.right - changes.left, changes.bottom - changes.top,
    1079         flags);
     1080        flags & ~SWP_NOSENDCHANGING);
    10801081
    10811082      /* Zero out the mask. */
     
    11981199
    11991200      ((GLUTreshapeCB)(window->reshape))(window->width, window->height);
     1201
    12001202      window->forceReshape = False;
    12011203
     
    13041306
    13051307  if (workMask & GLUT_FINISH_WORK) {
    1306 
    13071308    /* Finish work makes sure a glFinish gets done to indirect
    13081309       rendering contexts.  Indirect contexts tend to have much
  • trunk/src/opengl/glut/glut_init.c

    r3083 r3579  
    1 /* $Id: glut_init.c,v 1.4 2000-03-11 15:07:45 sandervl Exp $ */
     1/* $Id: glut_init.c,v 1.5 2000-05-20 13:48:23 jeroen Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994, 1997. */
    33
     
    355355glutInitDisplayMode(unsigned int mask)
    356356{
    357   dprintf(("GLUT32: glutInitDisplayMode()\n"));
    358357  __glutDisplayMode = mask;
    359358}
  • trunk/src/opengl/glut/glut_term.c

    r3083 r3579  
    1 /* $Id: glut_term.c,v 1.4 2000-03-11 15:07:45 sandervl Exp $ */
     1/* $Id: glut_term.c,v 1.5 2000-05-20 13:48:23 jeroen Exp $ */
    22/*
    33 * GLUT Termination - on exit cleanup any open windows
     
    88#include "glu.h"
    99#include "glutint.h"
    10 #ifdef __WIN32OS2__
    11 #include <misc.h>
    12 #endif
    1310
    1411void CDECL Glut32Terminate(void)
     
    1714
    1815      /* Our app has ended - close all the open windows! */
    19       dprintf(("GLUT internal cleanup - numwins %d\n",__glutWindowListSize));
    20 
    2116      for (i = 0; i < __glutWindowListSize; i++) {
    2217        if (__glutWindowList[i])
    2318          {
    24             dprintf(("GLUT32 internal cleanup: dtr %d\n",i));
    2519            glutDestroyWindow(i+1);
    26             dprintf(("GLUT32 internal cleanup: dtr %d com\n",i));
    2720          }
    2821      }
  • trunk/src/opengl/glut/glut_util.c

    r3083 r3579  
    1 /* $Id: glut_util.c,v 1.3 2000-03-11 15:07:45 sandervl Exp $ */
     1/* $Id: glut_util.c,v 1.4 2000-05-20 13:48:23 jeroen Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994. */
    33
     
    1212
    1313#include "glutint.h"
     14
     15#if defined(__WIN32OS2__)
     16#include <misc.h>
     17#endif
    1418
    1519/* strdup is actually not a standard ANSI C or POSIX routine
  • trunk/src/opengl/glut/glutint.h

    r3086 r3579  
    1 /* $Id: glutint.h,v 1.7 2000-03-11 17:07:46 sandervl Exp $ */
     1/* $Id: glutint.h,v 1.8 2000-05-20 13:48:23 jeroen Exp $ */
    22#ifndef __glutint_h__
    33#define __glutint_h__
     
    9393  } else { \
    9494    (dest).tv_sec = (src1).tv_sec + (src2).tv_sec; \
    95     if(((dest).tv_sec >= 1) && (((dest).tv_usec <0))) { \
     95    if(((dest).tv_sec >= 1) && (((LONG)(dest).tv_usec <0))) { \
    9696      (dest).tv_sec --;(dest).tv_usec += 1000000; \
    9797    } \
     
    9999}
    100100#define TIMEDELTA(dest, src1, src2) { \
    101   if(((dest).tv_usec = (src1).tv_usec - (src2).tv_usec) < 0) { \
     101  if((LONG)((dest).tv_usec = (src1).tv_usec - (src2).tv_usec) < 0) { \
    102102    (dest).tv_usec += 1000000; \
    103103    (dest).tv_sec = (src1).tv_sec - (src2).tv_sec - 1; \
  • trunk/src/opengl/glut/glutos2.h

    r3096 r3579  
    1 /* $Id: glutos2.h,v 1.5 2000-03-11 21:52:50 sandervl Exp $ */
     1/* $Id: glutos2.h,v 1.6 2000-05-20 13:48:23 jeroen Exp $ */
    22#ifndef __glutos2_h__
    33#define __glutos2_h__
     
    1111#include "os2_x11.h"
    1212#include "os2_glx.h"
    13 #include <misc.h>
    1413/* KSO: Dirty trick to get around problems with gettimeofday being
    1514 * defined in the sys\time.h in the toolkit. (at least in CSD2)
Note: See TracChangeset for help on using the changeset viewer.