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

extra logging + support for postponed ddraw resize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r9437 r9463  
    1 /* $Id: pmwindow.cpp,v 1.190 2002-11-27 13:56:26 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.191 2002-12-04 15:23:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    2121
    2222#include <os2wrap.h>
     23#include <odinwrap.h>
    2324#include <stdlib.h>
    2425#include <string.h>
     
    491492    SetWin32TIB();
    492493
     494#ifdef DEBUG
     495    dbg_ThreadPushCall("Win32WindowProc");
     496#endif
     497
    493498    // BEGIN NOTE-------------->>>>>> If this is changed, also change Win32FrameWindowProc!! <<<<<<<<<<<-------------------- BEGIN
    494499    teb = GetThreadTEB();
     
    557562        RELEASE_WNDOBJ(win32wnd);
    558563        RestoreOS2TIB();
     564
     565#ifdef DEBUG
     566        dbg_ThreadPopCall();
     567#endif
    559568        return rc;
    560569    }
     
    670679        win32wnd->callVisibleRgnNotifyProc(FALSE);
    671680        goto RunDefWndProc;
     681
     682    case WIN32APP_DDRAWFULLSCREEN:
     683        //Changing the size of the win32 window in SetCooperativeLevel can
     684        //fail if this happens during WM_ADJUSTWINDOWPOS
     685        //NOTE: This is not a good solution, but a proper fix is more difficult
     686        //      with the current window mess
     687        dprintf(("WIN32APP_DDRAWFULLSCREEN %x (%d,%d)", win32wnd->getWindowHandle(), mp1, mp2));
     688        SetWindowPos(win32wnd->getWindowHandle(), HWND_TOP_W, 0, 0, (DWORD)mp1, (DWORD)mp2, 0);
     689        ShowWindow(win32wnd->getWindowHandle(), SW_SHOW_W);
     690        break;
    672691
    673692    case WIN32APP_SETFOCUSMSG:
     
    10331052    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    10341053    RestoreOS2TIB();
     1054
     1055#ifdef DEBUG
     1056    dbg_ThreadPopCall();
     1057#endif
    10351058    return (MRESULT)rc;
    10361059
     
    10391062    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    10401063    RestoreOS2TIB();
     1064
     1065#ifdef DEBUG
     1066    dbg_ThreadPopCall();
     1067#endif
    10411068    return WinDefWindowProc( hwnd, msg, mp1, mp2 );
    10421069} /* End of Win32WindowProc */
     
    10511078 MRESULT          rc = 0;
    10521079 MSG              winMsg, *pWinMsg;
     1080
     1081#ifdef DEBUG
     1082    dbg_ThreadPushCall("Win32FrameWindowProc");
     1083#endif
    10531084
    10541085    //Restore our FS selector
     
    14061437        }
    14071438        dprintf(("WM_ADJUSTWINDOWPOS ret %x flags %x", ret, WinQueryWindowUShort(hwnd, QWS_FLAGS)));
     1439//testestset
     1440        if(ret == 0x0f) {
     1441            dprintf(("PMFRAME:WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
     1442            dprintf(("%x (%s) (%d,%d), (%d,%d)", pswp->fl, DbgGetStringSWPFlags(pswp->fl), pswp->x, pswp->y, pswp->cx, pswp->cy));
     1443        }
     1444//testestset
    14081445        rc = (MRESULT)ret;
    14091446        break;
     
    19541991    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    19551992    RestoreOS2TIB();
     1993
     1994#ifdef DEBUG
     1995    dbg_ThreadPopCall();
     1996#endif
    19561997    return (MRESULT)rc;
    19571998
     
    19602001    if(win32wnd) RELEASE_WNDOBJ(win32wnd);
    19612002    RestoreOS2TIB();
     2003
     2004#ifdef DEBUG
     2005    dbg_ThreadPopCall();
     2006#endif
    19622007    return pfnFrameWndProc(hwnd, msg, mp1, mp2);
    19632008
     
    19682013    //calling WinDefWindowProc here breaks Opera hotlist window (WM_ADJUSTWINDOWPOS)
    19692014//    return pfnFrameWndProc(hwnd, msg, mp1, mp2);
     2015
     2016#ifdef DEBUG
     2017    dbg_ThreadPopCall();
     2018#endif
    19702019    return WinDefWindowProc( hwnd, msg, mp1, mp2 );
    19712020}
Note: See TracChangeset for help on using the changeset viewer.