| CODENOTIFIER | HelpYou are not signed inSign in |
Project: JNA
Revision: 669
Author: twalljava
Date: 01 Sep 2008 15:33:56
Changes:Fix transparent window error on win2k
Files:| ... | ...@@ -740,9 +740,14 @@ | |
| 740 | 740 | ByteByReference bref = new ByteByReference(); |
| 741 | 741 | IntByReference iref = new IntByReference(); |
| 742 | 742 | byte level = getAlpha(win); |
| 743 | if (user.GetLayeredWindowAttributes(hWnd, null, bref, iref) | |
| 744 | && (iref.getValue() & User32.LWA_ALPHA) != 0) { | |
| 745 | level = bref.getValue(); | |
| 743 | try { | |
| 744 | // GetLayeredwindowAttributes supported WinXP and later | |
| 745 | if (user.GetLayeredWindowAttributes(hWnd, null, bref, iref) | |
| 746 | && (iref.getValue() & User32.LWA_ALPHA) != 0) { | |
| 747 | level = bref.getValue(); | |
| 748 | } | |
| 749 | } | |
| 750 | catch(UnsatisfiedLinkError e) { | |
| 746 | 751 | } |
| 747 | 752 | blend.SourceConstantAlpha = level; |
| 748 | 753 | blend.AlphaFormat = User32.AC_SRC_ALPHA; |
| ... | ...@@ -6,6 +6,7 @@ | |
| 6 | 6 | <b>Bug Fixes</b><br> |
| 7 | 7 | <ul> |
| 8 | 8 | <li>Avoid more content dragging on OSX or warn if it's too late. |
| 9 | <li>Fix UnsatisfiedLinkError using transparent window on Win2K. | |
| 9 | 10 | </ul> |
| 10 | 11 | <h2>Release 3.0.5</h2> |
| 11 | 12 | <b>Features</b><br> |