Changeset 3579 for trunk/src/opengl/glut
- Timestamp:
- May 20, 2000, 3:48:23 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: glut_bitmap.c,v 1.4 2000-05-20 13:48:22 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 17 17 GLint skiprows, skippixels, alignment; 18 18 19 #if defined(_WIN32) 19 #if defined(_WIN32) || defined(__WIN32OS2__) 20 20 fontinfo = (BitmapFontPtr) __glutFont(font); 21 21 #else -
trunk/src/opengl/glut/glut_cursor.c
r3083 r3579 1 /* $Id: glut_cursor.c,v 1. 3 2000-03-11 15:07:44 sandervlExp $ */1 /* $Id: glut_cursor.c,v 1.4 2000-05-20 13:48:22 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1995, 1998. */ 3 3 … … 165 165 case GLUT_CURSOR_FULL_CROSSHAIR: 166 166 #if defined(_WIN32) || defined(__WIN32OS2__) 167 xcursor = IDC_CROSS;167 xcursor = (Cursor)IDC_CROSS; 168 168 #else 169 169 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 sandervlExp $ */1 /* $Id: glut_event.c,v 1.10 2000-05-20 13:48:22 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */ 3 3 … … 1073 1073 1074 1074 /* Do the repositioning, moving, and push/pop. */ 1075 1075 1076 SetWindowPos(window->win, 1076 window->desiredStack == (Above ? HWND_TOP : HWND_NOTOPMOST),1077 window->desiredStack == Above ? HWND_TOP : HWND_NOTOPMOST, 1077 1078 changes.left, changes.top, 1078 1079 changes.right - changes.left, changes.bottom - changes.top, 1079 flags );1080 flags & ~SWP_NOSENDCHANGING); 1080 1081 1081 1082 /* Zero out the mask. */ … … 1198 1199 1199 1200 ((GLUTreshapeCB)(window->reshape))(window->width, window->height); 1201 1200 1202 window->forceReshape = False; 1201 1203 … … 1304 1306 1305 1307 if (workMask & GLUT_FINISH_WORK) { 1306 1307 1308 /* Finish work makes sure a glFinish gets done to indirect 1308 1309 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 sandervlExp $ */1 /* $Id: glut_init.c,v 1.5 2000-05-20 13:48:23 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 355 355 glutInitDisplayMode(unsigned int mask) 356 356 { 357 dprintf(("GLUT32: glutInitDisplayMode()\n"));358 357 __glutDisplayMode = mask; 359 358 } -
trunk/src/opengl/glut/glut_term.c
r3083 r3579 1 /* $Id: glut_term.c,v 1. 4 2000-03-11 15:07:45 sandervlExp $ */1 /* $Id: glut_term.c,v 1.5 2000-05-20 13:48:23 jeroen Exp $ */ 2 2 /* 3 3 * GLUT Termination - on exit cleanup any open windows … … 8 8 #include "glu.h" 9 9 #include "glutint.h" 10 #ifdef __WIN32OS2__11 #include <misc.h>12 #endif13 10 14 11 void CDECL Glut32Terminate(void) … … 17 14 18 15 /* Our app has ended - close all the open windows! */ 19 dprintf(("GLUT internal cleanup - numwins %d\n",__glutWindowListSize));20 21 16 for (i = 0; i < __glutWindowListSize; i++) { 22 17 if (__glutWindowList[i]) 23 18 { 24 dprintf(("GLUT32 internal cleanup: dtr %d\n",i));25 19 glutDestroyWindow(i+1); 26 dprintf(("GLUT32 internal cleanup: dtr %d com\n",i));27 20 } 28 21 } -
trunk/src/opengl/glut/glut_util.c
r3083 r3579 1 /* $Id: glut_util.c,v 1. 3 2000-03-11 15:07:45 sandervlExp $ */1 /* $Id: glut_util.c,v 1.4 2000-05-20 13:48:23 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 12 12 13 13 #include "glutint.h" 14 15 #if defined(__WIN32OS2__) 16 #include <misc.h> 17 #endif 14 18 15 19 /* 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 sandervlExp $ */1 /* $Id: glutint.h,v 1.8 2000-05-20 13:48:23 jeroen Exp $ */ 2 2 #ifndef __glutint_h__ 3 3 #define __glutint_h__ … … 93 93 } else { \ 94 94 (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))) { \ 96 96 (dest).tv_sec --;(dest).tv_usec += 1000000; \ 97 97 } \ … … 99 99 } 100 100 #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) { \ 102 102 (dest).tv_usec += 1000000; \ 103 103 (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 sandervlExp $ */1 /* $Id: glutos2.h,v 1.6 2000-05-20 13:48:23 jeroen Exp $ */ 2 2 #ifndef __glutos2_h__ 3 3 #define __glutos2_h__ … … 11 11 #include "os2_x11.h" 12 12 #include "os2_glx.h" 13 #include <misc.h>14 13 /* KSO: Dirty trick to get around problems with gettimeofday being 15 14 * defined in the sys\time.h in the toolkit. (at least in CSD2)
Note:
See TracChangeset
for help on using the changeset viewer.