Mercurial > hg > icedtea6-hg
view patches/windows-awt.patch @ 3282:7174b4a8d597
Update to b41.
2016-12-30 Andrew John Hughes <gnu.andrew@member.fsf.org>
Update to b41.
* patches/openjdk/7180907-jarsigner_sha-256.patch,
* patches/openjdk/8000897-pr2173-vm_crash_in_compilebroker.patch,
* patches/openjdk/8049480-jarsigner_openjdk_9.patch,
* patches/openjdk/8078628-pr3152-zero_pch_failure.patch,
* patches/openjdk/8169448-pr3205-pch_failure.patch:
Removed; upstreamed.
* Makefile.am:
(ICEDTEA_PATCHES): Remove upstreamed patches.
* NEWS: Updated.
* patches/hotspot/hs23/zero_fixes.patch:
Remove methodHandles.hpp fragment applied in 8078628/PR3152.
* patches/nomotif-6706121.patch,
* patches/windows-awt.patch: Regenerated.
author | Andrew John Hughes <gnu.andrew@redhat.com> |
---|---|
date | Sun, 01 Jan 2017 05:06:24 +0000 |
parents | faaea522af93 |
children |
line wrap: on
line source
diff -Nru openjdk.orig/jdk/src/windows/native/sun/windows/awt_Component.cpp openjdk/jdk/src/windows/native/sun/windows/awt_Component.cpp --- openjdk.orig/jdk/src/windows/native/sun/windows/awt_Component.cpp 2016-12-30 05:29:39.428571503 +0000 +++ openjdk/jdk/src/windows/native/sun/windows/awt_Component.cpp 2016-12-30 05:31:14.327011585 +0000 @@ -226,6 +226,10 @@ // Added by waleed to initialize the RTL Flags BOOL AwtComponent::sm_rtl = PRIMARYLANGID(GetInputLanguage()) == LANG_ARABIC || PRIMARYLANGID(GetInputLanguage()) == LANG_HEBREW; + +UINT AwtComponent::sm_95WheelMessage = WM_NULL; +UINT AwtComponent::sm_95WheelSupport = WM_NULL; + BOOL AwtComponent::sm_rtlReadingOrder = PRIMARYLANGID(GetInputLanguage()) == LANG_ARABIC; diff -Nru openjdk.orig/jdk/src/windows/native/sun/windows/awt_Component.h openjdk/jdk/src/windows/native/sun/windows/awt_Component.h --- openjdk.orig/jdk/src/windows/native/sun/windows/awt_Component.h 2016-12-30 04:57:02.996716680 +0000 +++ openjdk/jdk/src/windows/native/sun/windows/awt_Component.h 2016-12-30 05:32:38.725635993 +0000 @@ -420,6 +420,13 @@ */ virtual BOOL InheritsNativeMouseWheelBehavior(); + /* Functions for MouseWheel support on Windows95 + * These should only be called if running on 95 + */ + static void Wheel95Init(); + INLINE static UINT Wheel95GetMsg() {return sm_95WheelMessage;} + static UINT Wheel95GetScrLines(); + /* Determines whether the component is obscured by another window */ // Called on Toolkit thread static jboolean _IsObscured(void *param); @@ -715,6 +722,10 @@ virtual void SetDragCapture(UINT flags); virtual void ReleaseDragCapture(UINT flags); + // 95 support for mouse wheel + static UINT sm_95WheelMessage; + static UINT sm_95WheelSupport; + virtual void FillBackground(HDC hMemoryDC, SIZE &size); virtual void FillAlpha(void *bitmapBits, SIZE &size, BYTE alpha); diff -Nru openjdk.orig/jdk/src/windows/native/sun/windows/awt_MMStub.h openjdk/jdk/src/windows/native/sun/windows/awt_MMStub.h --- openjdk.orig/jdk/src/windows/native/sun/windows/awt_MMStub.h 2016-12-30 04:30:30.631056122 +0000 +++ openjdk/jdk/src/windows/native/sun/windows/awt_MMStub.h 2016-12-30 05:31:14.331011518 +0000 @@ -84,6 +84,12 @@ #define DEV_STR_LEN 128 +#define ULW_ALPHA 0x00000002 +#define LWA_ALPHA 0x00000002 +#define WS_EX_LAYERED 0x00080000 +#define WS_EX_NOACTIVATE 0x08000000L + + // Datatypes typedef BOOL (CALLBACK* MON_ENUM_CALLBACK_PROC)(MHND,HDC,LPRECT,LPARAM); @@ -114,6 +120,15 @@ WCHAR deviceKey[128]; } _DISPLAY_DEVICE, *P_DISPLAY_DEVICE; +typedef struct tagMSLLHOOKSTRUCT +{ + POINT pt; + DWORD mouseData; + DWORD flags; + DWORD time; + ULONG_PTR dwExtraInfo; +} MSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT; + /* Basic API's */ BOOL WINAPI _enumDisplayMonitors(HDC,LPCRECT,MON_ENUM_CALLBACK_PROC,LPARAM); BOOL WINAPI _enumDisplayDevices (LPVOID,int,P_DISPLAY_DEVICE,DWORD); @@ -131,6 +146,10 @@ HWND WINAPI _createWindowOM (MHND,LPCTSTR,LPCTSTR,DWORD,int,int,int, int,HWND,HMENU,HANDLE,LPVOID); +WINUSERAPI BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD); +WINUSERAPI BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD); + + #ifdef __cplusplus } #endif /* __cplusplus */ diff -Nru openjdk.orig/jdk/src/windows/native/sun/windows/awt_Window.cpp openjdk/jdk/src/windows/native/sun/windows/awt_Window.cpp --- openjdk.orig/jdk/src/windows/native/sun/windows/awt_Window.cpp 2016-12-30 04:57:03.000716613 +0000 +++ openjdk/jdk/src/windows/native/sun/windows/awt_Window.cpp 2016-12-30 05:31:14.331011518 +0000 @@ -709,7 +709,7 @@ y = min(y, windowBounds.bottom + (int)warningWindowHeight + 2); // Now make sure the warning window is visible on the screen - HMONITOR hmon = (HMONITOR)MonitorFromWindow(GetHWnd(), MONITOR_DEFAULTTOPRIMARY); + MHND hmon = MonitorFromWindow(GetHWnd(), MONITOR_DEFAULTTOPRIMARY); DASSERT(hmon != NULL); RECT monitorBounds;