Ignore:
Timestamp:
Mar 11, 2000, 4:07:48 PM (25 years ago)
Author:
sandervl
Message:

compile fixes + cleanup

File:
1 edited

Legend:

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

    r3079 r3083  
    1 /* $Id: glut_win.c,v 1.6 2000-03-11 09:05:05 jeroen Exp $ */
     1/* $Id: glut_win.c,v 1.7 2000-03-11 15:07:46 sandervl Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994, 1997.  */
    33
     
    1616
    1717#include "glutint.h"
    18 
    19 //#if defined(__WIN32OS2__)
    20 //#include "wgl.h"
    21 //#endif
    2218
    2319GLUTwindow *__glutCurrentWindow = NULL;
     
    479475
    480476#if defined(_WIN32) || defined(__WIN32OS2__)
    481 #if defined(__WIN32OS2__)
    482   WNDCLASSA wc;
    483 #else
    484477  WNDCLASS wc;
    485 #endif
    486478  int style;
    487479
    488 #if defined(__WIN32OS2__)
    489   if (!GetClassInfoA(GetModuleHandleA(NULL), "GLUT", &wc)) {
    490 #else
    491480  if (!GetClassInfo(GetModuleHandle(NULL), "GLUT", &wc)) {
    492 #endif
    493481    __glutOpenWin32Connection(NULL);
    494482  }
     
    556544    }
    557545  }
    558 #if defined(__WIN32OS2__)
    559   window->win = CreateWindowA("GLUT", "GLUT",
    560     WS_CLIPSIBLINGS | WS_CLIPCHILDREN | style,
    561     x, y, width, height, parent ? parent->win : __glutRoot,
    562     NULL, GetModuleHandleA(NULL), 0);
    563 #else
    564546  window->win = CreateWindow("GLUT", "GLUT",
    565547    WS_CLIPSIBLINGS | WS_CLIPCHILDREN | style,
    566548    x, y, width, height, parent ? parent->win : __glutRoot,
    567549    NULL, GetModuleHandle(NULL), 0);
    568 #endif
    569550
    570551  window->hdc = GetDC(window->win);
     
    587568  /* Make sure subwindows get a windowStatus callback. */
    588569  if (parent) {
    589 #if defined(__WIN32OS2__)
    590     PostMessageA(parent->win, WM_ACTIVATE, 0, 0);
    591 #else
    592570    PostMessage(parent->win, WM_ACTIVATE, 0, 0);
    593 #endif
    594571  }
    595572  window->renderDc = window->hdc;
     
    743720  textprop.nitems = strlen(title);
    744721#if defined(_WIN32) || defined(__WIN32OS2__)
    745 #if defined(__WIN32OS2__)
    746   SetWindowTextA(win, title);
    747 #else
    748722  SetWindowText(win, title);
    749 #endif
    750723  if (__glutIconic) {
    751724    window->desiredMapState = IconicState;
Note: See TracChangeset for help on using the changeset viewer.