Changeset 3083 for trunk/src/opengl/glut/glut_win.c
- Timestamp:
- Mar 11, 2000, 4:07:48 PM (25 years ago)
- 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 jeroenExp $ */1 /* $Id: glut_win.c,v 1.7 2000-03-11 15:07:46 sandervl Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 16 16 17 17 #include "glutint.h" 18 19 //#if defined(__WIN32OS2__)20 //#include "wgl.h"21 //#endif22 18 23 19 GLUTwindow *__glutCurrentWindow = NULL; … … 479 475 480 476 #if defined(_WIN32) || defined(__WIN32OS2__) 481 #if defined(__WIN32OS2__)482 WNDCLASSA wc;483 #else484 477 WNDCLASS wc; 485 #endif486 478 int style; 487 479 488 #if defined(__WIN32OS2__)489 if (!GetClassInfoA(GetModuleHandleA(NULL), "GLUT", &wc)) {490 #else491 480 if (!GetClassInfo(GetModuleHandle(NULL), "GLUT", &wc)) { 492 #endif493 481 __glutOpenWin32Connection(NULL); 494 482 } … … 556 544 } 557 545 } 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 #else564 546 window->win = CreateWindow("GLUT", "GLUT", 565 547 WS_CLIPSIBLINGS | WS_CLIPCHILDREN | style, 566 548 x, y, width, height, parent ? parent->win : __glutRoot, 567 549 NULL, GetModuleHandle(NULL), 0); 568 #endif569 550 570 551 window->hdc = GetDC(window->win); … … 587 568 /* Make sure subwindows get a windowStatus callback. */ 588 569 if (parent) { 589 #if defined(__WIN32OS2__)590 PostMessageA(parent->win, WM_ACTIVATE, 0, 0);591 #else592 570 PostMessage(parent->win, WM_ACTIVATE, 0, 0); 593 #endif594 571 } 595 572 window->renderDc = window->hdc; … … 743 720 textprop.nitems = strlen(title); 744 721 #if defined(_WIN32) || defined(__WIN32OS2__) 745 #if defined(__WIN32OS2__)746 SetWindowTextA(win, title);747 #else748 722 SetWindowText(win, title); 749 #endif750 723 if (__glutIconic) { 751 724 window->desiredMapState = IconicState;
Note:
See TracChangeset
for help on using the changeset viewer.