Changeset 346


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

Fix winhStoreWindowPos() Bug 903.

Files:
4 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);
  • trunk/include/helpers/winh.h

    r337 r346  
    764764
    765765    // V1.0.6 (2006-10-28) [pr]
     766    // V1.0.7 (2006-12-16) [pr]: Named screen width/height parameters
    766767
    767768    /*
     
    787788        USHORT      usMinXPos;
    788789        USHORT      usMinYPos;
    789         ULONG       ulRes3;           // Always 0x0400 (???)
    790         ULONG       ulRes4;           // Always 0x0300 (???)
    791         ULONG       ulRes5;           // Always 0xFFFFFFFF (???)
    792         ULONG       ulRes6;           // Always 0xFFFFFFFF (???)
     790        ULONG       ulScreenWidth;
     791        ULONG       ulScreenHeight;
     792        ULONG       ulRes3;           // Always 0xFFFFFFFF (???)
     793        ULONG       ulRes4;           // Always 0xFFFFFFFF (???)
    793794        ULONG       ulPPLen;          // Presentation Parameters length
    794795    } STOREPOS, *PSTOREPOS;
  • trunk/src/helpers/winh.c

    r338 r346  
    26622662 *
    26632663 *@@added XWP V1.0.6 (2006-10-31) [pr]: @@fixes 458
     2664 *@@changed XWP V1.0.7 (2006-12-16) [pr]: detect screen height/width @@fixes 903
    26642665 */
    26652666
     
    26802681        if ((pStorePos = malloc(ulSize)))
    26812682        {
    2682             // This first bit is all guesswork as I don't know what it all means,
     2683            // This first bit is guesswork as I don't know what it all means,
    26832684            // but it always seems to be the same everywhere I've looked.
    26842685            pStorePos->usMagic = 0x7B6A;
    26852686            pStorePos->ulRes1 = 1;
    26862687            pStorePos->ulRes2 = 1;
    2687             pStorePos->ulRes3 = 0x0400;
    2688             pStorePos->ulRes4 = 0x0300;
    2689             pStorePos->ulRes5 = 0xFFFFFFFF;
    2690             pStorePos->ulRes6 = 0xFFFFFFFF;
     2688            pStorePos->ulRes3 = 0xFFFFFFFF;
     2689            pStorePos->ulRes4 = 0xFFFFFFFF;
    26912690
    26922691            pStorePos->ulFlags = swp.fl;
     
    27052704            pStorePos->usMinXPos = WinQueryWindowUShort(hwnd, QWS_XMINIMIZE);
    27062705            pStorePos->usMinYPos = WinQueryWindowUShort(hwnd, QWS_YMINIMIZE);
     2706            pStorePos->ulScreenWidth = WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN);;
     2707            pStorePos->ulScreenHeight = WinQuerySysValue(HWND_DESKTOP, SV_CYSCREEN);;
    27072708            pStorePos->ulPPLen = WinGetFrameTreePPs(hwnd, ulSizePP, (PSZ)(pStorePos + 1));
    27082709            ulSize = pStorePos->ulPPLen + sizeof(STOREPOS);
Note: See TracChangeset for help on using the changeset viewer.