Changeset 346 for branches


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

Fix winhStoreWindowPos() Bug 903.

Location:
branches/branch-1-0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/include/helpers/winh.h

    r337 r346  
    674674
    675675    // V1.0.6 (2006-10-28) [pr]
     676    // V1.0.7 (2006-12-16) [pr]: Named screen width/height parameters
    676677
    677678    /*
     
    697698        USHORT      usMinXPos;
    698699        USHORT      usMinYPos;
    699         ULONG       ulRes3;           // Always 0x0400 (???)
    700         ULONG       ulRes4;           // Always 0x0300 (???)
    701         ULONG       ulRes5;           // Always 0xFFFFFFFF (???)
    702         ULONG       ulRes6;           // Always 0xFFFFFFFF (???)
     700        ULONG       ulScreenWidth;
     701        ULONG       ulScreenHeight;
     702        ULONG       ulRes3;           // Always 0xFFFFFFFF (???)
     703        ULONG       ulRes4;           // Always 0xFFFFFFFF (???)
    703704        ULONG       ulPPLen;          // Presentation Parameters length
    704705    } STOREPOS, *PSTOREPOS;
  • 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.