Changeset 2996 for trunk/src/opengl/glut/win32_winproc.c
- Timestamp:
- Mar 4, 2000, 8:10:18 PM (25 years ago)
- File:
-
- 1 edited
-
trunk/src/opengl/glut/win32_winproc.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glut/win32_winproc.c
r2689 r2996 1 /* $Id: win32_winproc.c,v 1. 2 2000-02-09 08:46:23jeroen Exp $ */1 /* $Id: win32_winproc.c,v 1.3 2000-03-04 19:10:17 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 /* portions Copyright (c) Mark Kilgard, 1997, 1998. */ … … 10 10 #include "glutint.h" 11 11 #if defined(__WIN32OS2__) 12 #include "wgl.h"12 //#include "wgl.h" 13 13 #include <ctype.h> 14 14 #endif … … 90 90 #endif 91 91 case WM_PAINT: 92 dprintf(("GLUT32: WM_PAINT processing...\n"));93 92 window = __glutGetWindow(hwnd); 94 93 if (window) { 94 /* 95 95 #ifndef __WIN32OS2__ 96 BeginPaint(hwnd, &ps); /* Must have this for some Win32 reason.*/96 BeginPaint(hwnd, &ps); 97 97 EndPaint(hwnd, &ps); 98 #endif 98 #endif */ 99 99 if (window->win == hwnd) { 100 100 __glutPostRedisplay(window, GLUT_REPAIR_WORK); … … 314 314 handleDelete: 315 315 /* Delete is an ASCII character. */ 316 dprintf(("VK_DELETE - wParam is %d\n",wParam));317 316 key=(unsigned char)127; 318 317 break; … … 356 355 if(fSendKeyStroke) 357 356 { 358 dprintf(("Sending keystroke %d...\n",key));359 360 357 GetCursorPos(&point); 361 358 ScreenToClient(window->win, &point); … … 390 387 /* TODO: take this out once the menu on middle mouse stuff works 391 388 properly. */ 389 /* 392 390 if (button == GLUT_MIDDLE_BUTTON) 393 return 0; 391 return 0;*/ 394 392 GetCursorPos(&point); 395 393 ScreenToClient(hwnd, &point); … … 613 611 614 612 case WM_SIZE: 615 dprintf(("GLUT32: Handling WM_SIZE..."));616 613 window = __glutGetWindow(hwnd); 617 614 if (window) { … … 619 616 height = HIWORD(lParam); 620 617 if (width != window->width || height != window->height) { 621 #if 0 /* Win32 GLUT does not support overlays for now.*/618 #if 0 /* Win32 GLUT does not support overlays for now.*/ 622 619 if (window->overlay) { 623 620 XResizeWindow(__glutDisplay, window->overlay->win, width, height); … … 630 627 to the SetWindowPos request! */ 631 628 GdiFlush(); 632 window->reshape(width, height);629 ((GLUTreshapeCB)(window->reshape))(width, height); 633 630 window->forceReshape = FALSE; 634 631 /* A reshape should be considered like posting a 635 632 repair request. */ 636 dprintf(("GLUT32: WM_SIZE processing -> GLUT_REPAIR_WORK\n"));637 633 __glutPostRedisplay(window, GLUT_REPAIR_WORK); 638 634 } 639 635 } 640 dprintf(("GLUT32: Handled WM_SIZE..."));641 636 return 0; 642 637
Note:
See TracChangeset
for help on using the changeset viewer.
