Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7de210fb
Commit
7de210fb
authored
Dec 21, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Reimplement CopyIcon16/CopyCursor16 using CreateCursorIconIndirect16.
parent
001abc3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
cursoricon.c
dlls/user32/cursoricon.c
+13
-4
No files found.
dlls/user32/cursoricon.c
View file @
7de210fb
...
@@ -1557,8 +1557,12 @@ HGLOBAL16 WINAPI CreateCursorIconIndirect16( HINSTANCE16 hInstance,
...
@@ -1557,8 +1557,12 @@ HGLOBAL16 WINAPI CreateCursorIconIndirect16( HINSTANCE16 hInstance,
*/
*/
HICON16
WINAPI
CopyIcon16
(
HINSTANCE16
hInstance
,
HICON16
hIcon
)
HICON16
WINAPI
CopyIcon16
(
HINSTANCE16
hInstance
,
HICON16
hIcon
)
{
{
TRACE_
(
icon
)(
"%04x %04x
\n
"
,
hInstance
,
hIcon
);
CURSORICONINFO
*
info
=
GlobalLock16
(
hIcon
);
return
HICON_16
(
CURSORICON_Copy
(
hInstance
,
HICON_32
(
hIcon
)));
void
*
and_bits
=
info
+
1
;
void
*
xor_bits
=
(
BYTE
*
)
and_bits
+
info
->
nHeight
*
get_bitmap_width_bytes
(
info
->
nWidth
,
1
);
HGLOBAL16
ret
=
CreateCursorIconIndirect16
(
hInstance
,
info
,
and_bits
,
xor_bits
);
GlobalUnlock16
(
hIcon
);
return
ret
;
}
}
...
@@ -1577,10 +1581,15 @@ HICON WINAPI CopyIcon( HICON hIcon )
...
@@ -1577,10 +1581,15 @@ HICON WINAPI CopyIcon( HICON hIcon )
*/
*/
HCURSOR16
WINAPI
CopyCursor16
(
HINSTANCE16
hInstance
,
HCURSOR16
hCursor
)
HCURSOR16
WINAPI
CopyCursor16
(
HINSTANCE16
hInstance
,
HCURSOR16
hCursor
)
{
{
TRACE_
(
cursor
)(
"%04x %04x
\n
"
,
hInstance
,
hCursor
);
CURSORICONINFO
*
info
=
GlobalLock16
(
hCursor
);
return
HICON_16
(
CURSORICON_Copy
(
hInstance
,
HCURSOR_32
(
hCursor
)));
void
*
and_bits
=
info
+
1
;
void
*
xor_bits
=
(
BYTE
*
)
and_bits
+
info
->
nHeight
*
get_bitmap_width_bytes
(
info
->
nWidth
,
1
);
HGLOBAL16
ret
=
CreateCursorIconIndirect16
(
hInstance
,
info
,
and_bits
,
xor_bits
);
GlobalUnlock16
(
hCursor
);
return
ret
;
}
}
/**********************************************************************
/**********************************************************************
* DestroyIcon32 (USER.610)
* DestroyIcon32 (USER.610)
*
*
...
...
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