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
9726a711
Commit
9726a711
authored
Nov 23, 2008
by
Andrew Riedi
Committed by
Alexandre Julliard
Nov 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make the hotspot ICON_HOTSPOT when loading icons.
Based on patches by Henri Verbeet.
parent
75b9c050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
cursoricon.c
dlls/user32/cursoricon.c
+11
-2
No files found.
dlls/user32/cursoricon.c
View file @
9726a711
...
...
@@ -1124,8 +1124,17 @@ static HICON CURSORICON_LoadFromFile( LPCWSTR filename,
if
(
entry
->
dwDIBOffset
+
entry
->
dwDIBSize
>
filesize
)
goto
end
;
hotspot
.
x
=
entry
->
xHotspot
;
hotspot
.
y
=
entry
->
yHotspot
;
/* Set the actual hotspot for cursors and ICON_HOTSPOT for icons. */
if
(
fCursor
)
{
hotspot
.
x
=
entry
->
xHotspot
;
hotspot
.
y
=
entry
->
yHotspot
;
}
else
{
hotspot
.
x
=
ICON_HOTSPOT
;
hotspot
.
y
=
ICON_HOTSPOT
;
}
hIcon
=
CURSORICON_CreateIconFromBMI
(
(
BITMAPINFO
*
)
&
bits
[
entry
->
dwDIBOffset
],
hotspot
,
!
fCursor
,
0x00030000
,
width
,
height
,
loadflags
);
...
...
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