Changeset 346
- Timestamp:
- Dec 16, 2006, 12:42:52 PM (19 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/include/helpers/winh.h
r337 r346 674 674 675 675 // V1.0.6 (2006-10-28) [pr] 676 // V1.0.7 (2006-12-16) [pr]: Named screen width/height parameters 676 677 677 678 /* … … 697 698 USHORT usMinXPos; 698 699 USHORT usMinYPos; 699 ULONG ul Res3; // Always 0x0400 (???)700 ULONG ul Res4; // Always 0x0300 (???)701 ULONG ulRes 5; // Always 0xFFFFFFFF (???)702 ULONG ulRes 6; // Always 0xFFFFFFFF (???)700 ULONG ulScreenWidth; 701 ULONG ulScreenHeight; 702 ULONG ulRes3; // Always 0xFFFFFFFF (???) 703 ULONG ulRes4; // Always 0xFFFFFFFF (???) 703 704 ULONG ulPPLen; // Presentation Parameters length 704 705 } STOREPOS, *PSTOREPOS; -
branches/branch-1-0/src/helpers/winh.c
r338 r346 2484 2484 * 2485 2485 *@@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 2486 2487 */ 2487 2488 … … 2502 2503 if ((pStorePos = malloc(ulSize))) 2503 2504 { 2504 // This first bit is allguesswork as I don't know what it all means,2505 // This first bit is guesswork as I don't know what it all means, 2505 2506 // but it always seems to be the same everywhere I've looked. 2506 2507 pStorePos->usMagic = 0x7B6A; 2507 2508 pStorePos->ulRes1 = 1; 2508 2509 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; 2513 2512 2514 2513 pStorePos->ulFlags = swp.fl; … … 2527 2526 pStorePos->usMinXPos = WinQueryWindowUShort(hwnd, QWS_XMINIMIZE); 2528 2527 pStorePos->usMinYPos = WinQueryWindowUShort(hwnd, QWS_YMINIMIZE); 2528 pStorePos->ulScreenWidth = WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN);; 2529 pStorePos->ulScreenHeight = WinQuerySysValue(HWND_DESKTOP, SV_CYSCREEN);; 2529 2530 pStorePos->ulPPLen = WinGetFrameTreePPs(hwnd, ulSizePP, (PSZ)(pStorePos + 1)); 2530 2531 ulSize = pStorePos->ulPPLen + sizeof(STOREPOS); -
trunk/include/helpers/winh.h
r337 r346 764 764 765 765 // V1.0.6 (2006-10-28) [pr] 766 // V1.0.7 (2006-12-16) [pr]: Named screen width/height parameters 766 767 767 768 /* … … 787 788 USHORT usMinXPos; 788 789 USHORT usMinYPos; 789 ULONG ul Res3; // Always 0x0400 (???)790 ULONG ul Res4; // Always 0x0300 (???)791 ULONG ulRes 5; // Always 0xFFFFFFFF (???)792 ULONG ulRes 6; // Always 0xFFFFFFFF (???)790 ULONG ulScreenWidth; 791 ULONG ulScreenHeight; 792 ULONG ulRes3; // Always 0xFFFFFFFF (???) 793 ULONG ulRes4; // Always 0xFFFFFFFF (???) 793 794 ULONG ulPPLen; // Presentation Parameters length 794 795 } STOREPOS, *PSTOREPOS; -
trunk/src/helpers/winh.c
r338 r346 2662 2662 * 2663 2663 *@@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 2664 2665 */ 2665 2666 … … 2680 2681 if ((pStorePos = malloc(ulSize))) 2681 2682 { 2682 // This first bit is allguesswork as I don't know what it all means,2683 // This first bit is guesswork as I don't know what it all means, 2683 2684 // but it always seems to be the same everywhere I've looked. 2684 2685 pStorePos->usMagic = 0x7B6A; 2685 2686 pStorePos->ulRes1 = 1; 2686 2687 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; 2691 2690 2692 2691 pStorePos->ulFlags = swp.fl; … … 2705 2704 pStorePos->usMinXPos = WinQueryWindowUShort(hwnd, QWS_XMINIMIZE); 2706 2705 pStorePos->usMinYPos = WinQueryWindowUShort(hwnd, QWS_YMINIMIZE); 2706 pStorePos->ulScreenWidth = WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN);; 2707 pStorePos->ulScreenHeight = WinQuerySysValue(HWND_DESKTOP, SV_CYSCREEN);; 2707 2708 pStorePos->ulPPLen = WinGetFrameTreePPs(hwnd, ulSizePP, (PSZ)(pStorePos + 1)); 2708 2709 ulSize = pStorePos->ulPPLen + sizeof(STOREPOS);
Note:
See TracChangeset
for help on using the changeset viewer.