Changeset 9462 for trunk/src


Ignore:
Timestamp:
Dec 4, 2002, 4:21:42 PM (23 years ago)
Author:
sandervl
Message:

Post resize message in SetCooperativeLevel instead of calling SetWindowPos

Location:
trunk/src/ddraw
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2UTIL.CPP

    r8116 r9462  
    1 /* $Id: OS2UTIL.CPP,v 1.13 2002-03-22 15:55:00 sandervl Exp $ */
     1/* $Id: OS2UTIL.CPP,v 1.14 2002-12-04 15:21:40 sandervl Exp $ */
    22
    33/*
     
    4949//******************************************************************************
    5050//******************************************************************************
     51BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG mp1, ULONG mp2)
     52{
     53    return WinPostMsg(hwnd, msg, (MPARAM)mp1, (MPARAM)mp2);
     54}
     55//******************************************************************************
     56//******************************************************************************
    5157
    5258extern "C" {
     
    6369
    6470}
    65 
     71//******************************************************************************
     72//******************************************************************************
    6673int InitIO()
    6774{
     
    96103  return 0;
    97104}
    98 
     105//******************************************************************************
     106//******************************************************************************
  • trunk/src/ddraw/OS2UTIL.H

    r5326 r9462  
    1 /* $Id: OS2UTIL.H,v 1.6 2001-03-18 21:44:43 mike Exp $ */
     1/* $Id: OS2UTIL.H,v 1.7 2002-12-04 15:21:40 sandervl Exp $ */
    22
    33/*
     
    1515void  OS2FreeMem(char *lpMem);
    1616void  OS2MaximizeWindow(HWND hwndClient);
    17 void InverseDC(HDC hdc, LONG lHeight);
    18 int InitIO();
     17BOOL  OSLibPostMessage(HWND hwnd, ULONG msg, ULONG mp1, ULONG mp2);
     18void  InverseDC(HDC hdc, LONG lHeight);
     19int   InitIO();
     20
    1921#endif
  • trunk/src/ddraw/ddraw2d.cpp

    r9459 r9462  
    1 /* $Id: ddraw2d.cpp,v 1.1 2002-12-04 10:34:59 sandervl Exp $ */
     1/* $Id: ddraw2d.cpp,v 1.2 2002-12-04 15:21:41 sandervl Exp $ */
    22
    33/*
     
    2020#include <string.h>
    2121#include <memory.h>
     22#include <winuser32.h>
    2223
    2324#define INITGUID
     
    18931894    me->hwndClient = hwndClient;
    18941895    if(hwndClient) {
    1895         //TODO: Can this be done here??
    1896 //NOTE: This messes up some DDraw apps, so don't touch the window
     1896        //Changing the size of the win32 window in SetCooperativeLevel can
     1897        //fail if this happens during WM_ADJUSTWINDOWPOS
     1898        //NOTE: This is not a good solution, but a proper fix is more difficult
     1899        //      with the current window mess
     1900        OSLibPostMessage(Win32ToOS2Handle(me->hwndClient), WIN32APP_DDRAWFULLSCREEN, me->screenwidth, me->screenheight);
    18971901//        SetWindowPos(me->hwndClient, HWND_TOP, 0, 0, me->screenwidth, me->screenheight,0);
    18981902//        ShowWindow(hwndClient, SW_SHOW);
  • trunk/src/ddraw/surface.cpp

    r9459 r9462  
    1 /* $Id: surface.cpp,v 1.1 2002-12-04 10:35:02 sandervl Exp $ */
     1/* $Id: surface.cpp,v 1.2 2002-12-04 15:21:42 sandervl Exp $ */
    22
    33/*
     
    590590
    591591#if 0
    592       if(lpDraw->GetCooperativeLevel() & DDSCL_FULLSCREEN)
    593       {
    594            SetWindowPos(lpDraw->GetClientWindow(), HWND_TOP, 0, 0, DDSurfaceDesc.dwWidth, DDSurfaceDesc.dwHeight,0);
    595       }
    596 
    597592//NOTE: This isn't working at all (interferes with mouse messages for application
    598593//      window)
Note: See TracChangeset for help on using the changeset viewer.