Ignore:
Timestamp:
Dec 16, 2006, 12:42:52 PM (19 years ago)
Author:
pr
Message:

Fix winhStoreWindowPos() Bug 903.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/winh.c

    r338 r346  
    24842484 *
    24852485 *@@added XWP V1.0.6 (2006-10-31) [pr]: @@fixes 458
     2486 *@@changed XWP V1.0.7 (2006-12-16) [pr]: detect screen height/width @@fixes 903
    24862487 */
    24872488
     
    25022503        if ((pStorePos = malloc(ulSize)))
    25032504        {
    2504             // This first bit is all guesswork as I don't know what it all means,
     2505            // This first bit is guesswork as I don't know what it all means,
    25052506            // but it always seems to be the same everywhere I've looked.
    25062507            pStorePos->usMagic = 0x7B6A;
    25072508            pStorePos->ulRes1 = 1;
    25082509            pStorePos->ulRes2 = 1;
    2509             pStorePos->ulRes3 = 0x0400;
    2510             pStorePos->ulRes4 = 0x0300;
    2511             pStorePos->ulRes5 = 0xFFFFFFFF;
    2512             pStorePos->ulRes6 = 0xFFFFFFFF;
     2510            pStorePos->ulRes3 = 0xFFFFFFFF;
     2511            pStorePos->ulRes4 = 0xFFFFFFFF;
    25132512
    25142513            pStorePos->ulFlags = swp.fl;
     
    25272526            pStorePos->usMinXPos = WinQueryWindowUShort(hwnd, QWS_XMINIMIZE);
    25282527            pStorePos->usMinYPos = WinQueryWindowUShort(hwnd, QWS_YMINIMIZE);
     2528            pStorePos->ulScreenWidth = WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN);;
     2529            pStorePos->ulScreenHeight = WinQuerySysValue(HWND_DESKTOP, SV_CYSCREEN);;
    25292530            pStorePos->ulPPLen = WinGetFrameTreePPs(hwnd, ulSizePP, (PSZ)(pStorePos + 1));
    25302531            ulSize = pStorePos->ulPPLen + sizeof(STOREPOS);
Note: See TracChangeset for help on using the changeset viewer.