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

Post resize message in SetCooperativeLevel instead of calling SetWindowPos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.