Ignore:
Timestamp:
Mar 4, 2000, 8:10:18 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

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:23 jeroen Exp $ */
     1/* $Id: win32_winproc.c,v 1.3 2000-03-04 19:10:17 jeroen Exp $ */
    22/* Copyright (c) Nate Robins, 1997. */
    33/* portions Copyright (c) Mark Kilgard, 1997, 1998. */
     
    1010#include "glutint.h"
    1111#if defined(__WIN32OS2__)
    12 #include "wgl.h"
     12//#include "wgl.h"
    1313#include <ctype.h>
    1414#endif
     
    9090#endif
    9191  case WM_PAINT:
    92     dprintf(("GLUT32: WM_PAINT processing...\n"));
    9392    window = __glutGetWindow(hwnd);
    9493    if (window) {
     94/*
    9595#ifndef __WIN32OS2__
    96       BeginPaint(hwnd, &ps);       /* Must have this for some Win32 reason.*/
     96      BeginPaint(hwnd, &ps);
    9797      EndPaint(hwnd, &ps);
    98 #endif
     98#endif */
    9999      if (window->win == hwnd) {
    100100        __glutPostRedisplay(window, GLUT_REPAIR_WORK);
     
    314314      handleDelete:
    315315        /* Delete is an ASCII character. */
    316         dprintf(("VK_DELETE - wParam is %d\n",wParam));
    317316        key=(unsigned char)127;
    318317        break;
     
    356355      if(fSendKeyStroke)
    357356        {
    358           dprintf(("Sending keystroke %d...\n",key));
    359 
    360357          GetCursorPos(&point);
    361358          ScreenToClient(window->win, &point);
     
    390387      /* TODO: take this out once the menu on middle mouse stuff works
    391388         properly. */
     389/*
    392390      if (button == GLUT_MIDDLE_BUTTON)
    393         return 0;
     391        return 0;*/
    394392      GetCursorPos(&point);
    395393      ScreenToClient(hwnd, &point);
     
    613611
    614612  case WM_SIZE:
    615     dprintf(("GLUT32: Handling WM_SIZE..."));
    616613    window = __glutGetWindow(hwnd);
    617614    if (window) {
     
    619616      height = HIWORD(lParam);
    620617      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.*/
    622619        if (window->overlay) {
    623620          XResizeWindow(__glutDisplay, window->overlay->win, width, height);
     
    630627           to the SetWindowPos request! */
    631628        GdiFlush();
    632         window->reshape(width, height);
     629        ((GLUTreshapeCB)(window->reshape))(width, height);
    633630        window->forceReshape = FALSE;
    634631        /* A reshape should be considered like posting a
    635632           repair request. */
    636         dprintf(("GLUT32: WM_SIZE processing -> GLUT_REPAIR_WORK\n"));
    637633        __glutPostRedisplay(window, GLUT_REPAIR_WORK);
    638634      }
    639635    }
    640     dprintf(("GLUT32: Handled WM_SIZE..."));
    641636    return 0;
    642637
Note: See TracChangeset for help on using the changeset viewer.