Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
169a09b4
Commit
169a09b4
authored
May 20, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Directly use win32u in more places.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
parent
0dc07615
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
image.c
dlls/winemac.drv/image.c
+3
-3
keyboard.c
dlls/winemac.drv/keyboard.c
+2
-2
macdrv.h
dlls/winemac.drv/macdrv.h
+7
-0
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+1
-1
No files found.
dlls/winemac.drv/image.c
View file @
169a09b4
...
...
@@ -70,7 +70,7 @@ CGImageRef create_cgimage_from_icon_bitmaps(HDC hdc, HANDLE icon, HBITMAP hbmCol
/* draw the cursor frame to a temporary buffer then create a CGImage from that */
memset
(
color_bits
,
0x00
,
color_size
);
NtGdiSelectBitmap
(
hdc
,
hbmColor
);
if
(
!
DrawIconEx
(
hdc
,
0
,
0
,
icon
,
width
,
height
,
istep
,
NULL
,
DI_NORMAL
))
if
(
!
NtUser
DrawIconEx
(
hdc
,
0
,
0
,
icon
,
width
,
height
,
istep
,
NULL
,
DI_NORMAL
))
{
WARN
(
"Could not draw frame %d (walk past end of frames).
\n
"
,
istep
);
return
NULL
;
...
...
@@ -129,7 +129,7 @@ CGImageRef create_cgimage_from_icon_bitmaps(HDC hdc, HANDLE icon, HBITMAP hbmCol
/* draw the cursor mask to a temporary buffer */
memset
(
mask_bits
,
0xFF
,
mask_size
);
NtGdiSelectBitmap
(
hdc
,
hbmMask
);
if
(
!
DrawIconEx
(
hdc
,
0
,
0
,
icon
,
width
,
height
,
istep
,
NULL
,
DI_MASK
))
if
(
!
NtUser
DrawIconEx
(
hdc
,
0
,
0
,
icon
,
width
,
height
,
istep
,
NULL
,
DI_MASK
))
{
WARN
(
"Failed to draw frame mask %d.
\n
"
,
istep
);
CGImageRelease
(
cgimage
);
...
...
@@ -199,7 +199,7 @@ CGImageRef create_cgimage_from_icon(HANDLE icon, int width, int height)
ICONINFO
info
;
BITMAP
bm
;
if
(
!
GetIconInfo
(
icon
,
&
info
))
if
(
!
NtUserGetIconInfo
(
icon
,
&
info
,
NULL
,
NULL
,
NULL
,
0
))
return
NULL
;
NtGdiExtGetObjectW
(
info
.
hbmMask
,
sizeof
(
bm
),
&
bm
);
...
...
dlls/winemac.drv/keyboard.c
View file @
169a09b4
...
...
@@ -1045,9 +1045,9 @@ void macdrv_keyboard_changed(const macdrv_event *event)
macdrv_compute_keyboard_layout
(
thread_data
);
ActivateKeyboardLayout
(
thread_data
->
active_keyboard_layout
,
0
);
NtUser
ActivateKeyboardLayout
(
thread_data
->
active_keyboard_layout
,
0
);
SendMessageW
(
GetActiveW
indow
(),
WM_CANCELMODE
,
0
,
0
);
send_message
(
get_active_w
indow
(),
WM_CANCELMODE
,
0
,
0
);
}
...
...
dlls/winemac.drv/macdrv.h
View file @
169a09b4
...
...
@@ -302,6 +302,13 @@ static inline LRESULT send_message(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
return
NtUserMessageCall
(
hwnd
,
msg
,
wparam
,
lparam
,
NULL
,
NtUserSendMessage
,
FALSE
);
}
static
inline
HWND
get_active_window
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndActive
:
0
;
}
/* registry helpers */
extern
HKEY
open_hkcu_key
(
const
char
*
name
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_main.c
View file @
169a09b4
...
...
@@ -558,7 +558,7 @@ struct macdrv_thread_data *macdrv_init_thread_data(void)
set_queue_display_fd
(
macdrv_get_event_queue_fd
(
data
->
queue
));
TlsSetValue
(
thread_data_tls_index
,
data
);
ActivateKeyboardLayout
(
data
->
active_keyboard_layout
,
0
);
NtUser
ActivateKeyboardLayout
(
data
->
active_keyboard_layout
,
0
);
return
data
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment