Module: wine
Branch: master
Commit: cad4badbcf25992e0c61521aa15e639c2611f5d6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cad4badbcf25992e0c61521aa…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Tue Apr 4 09:07:43 2017 +0200
wined3d: Get rid of wined3d_select_blitter().
Instead, chain the blitters themselves. This also fixes the issue that
currently only a single blitter can store extra data in the "blit_priv" field
of struct wined3d_device.
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/wined3d/arb_program_shader.c | 141 ++++++++++------
dlls/wined3d/device.c | 27 +--
dlls/wined3d/directx.c | 12 --
dlls/wined3d/surface.c | 335 ++++++++++++++++++++++----------------
dlls/wined3d/swapchain.c | 14 +-
dlls/wined3d/utils.c | 31 ----
dlls/wined3d/wined3d_private.h | 40 +++--
7 files changed, 313 insertions(+), 287 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=cad4badbcf25992e0c615…
Module: wine
Branch: master
Commit: 4b8c0d8784593d2830f66407a51e88934ad7adb4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b8c0d8784593d2830f66407a…
Author: Ken Thomases <ken(a)codeweavers.com>
Date: Mon Apr 3 20:57:14 2017 -0500
winemac: Send Help key presses directly to the window, bypassing -[NSApplication sendEvent:].
-[NSApplication sendEvent:] seems to consume the event and doesn't pass it along
to the window.
Mac keyboards haven't included a Help key for a long time, but users with PC
keyboards can use the Insert key, which is in the same position. The Mac
driver translates either one to VK_INSERT.
Signed-off-by: Ken Thomases <ken(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/winemac.drv/cocoa_app.m | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
index 27ebdc4..6d1473a 100644
--- a/dlls/winemac.drv/cocoa_app.m
+++ b/dlls/winemac.drv/cocoa_app.m
@@ -1973,6 +1973,17 @@ static NSString* WineLocalizedString(unsigned int stringID)
[self handleScrollWheel:anEvent];
ret = mouseCaptureWindow != nil;
}
+ else if (type == NSKeyDown)
+ {
+ // -[NSApplication sendEvent:] seems to consume presses of the Help
+ // key (Insert key on PC keyboards), so we have to bypass it and
+ // send the event directly to the window.
+ if (anEvent.keyCode == kVK_Help)
+ {
+ [anEvent.window sendEvent:anEvent];
+ ret = TRUE;
+ }
+ }
else if (type == NSKeyUp)
{
uint16_t keyCode = [anEvent keyCode];