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
b5186e17
Commit
b5186e17
authored
Feb 27, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Simplify height calculation.
parent
f0e88c2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cursoricon.c
dlls/user32/cursoricon.c
+3
-2
No files found.
dlls/user32/cursoricon.c
View file @
b5186e17
...
...
@@ -1759,6 +1759,8 @@ BOOL WINAPI GetIconInfo(HICON hIcon, PICONINFO iconinfo)
iconinfo
->
yHotspot
=
ciconinfo
->
ptHotSpot
.
y
;
}
height
=
ciconinfo
->
nHeight
;
if
(
ciconinfo
->
bBitsPerPixel
>
1
)
{
iconinfo
->
hbmColor
=
CreateBitmap
(
ciconinfo
->
nWidth
,
ciconinfo
->
nHeight
,
...
...
@@ -1766,12 +1768,11 @@ BOOL WINAPI GetIconInfo(HICON hIcon, PICONINFO iconinfo)
(
char
*
)(
ciconinfo
+
1
)
+
ciconinfo
->
nHeight
*
get_bitmap_width_bytes
(
ciconinfo
->
nWidth
,
1
)
);
height
=
ciconinfo
->
nHeight
;
}
else
{
iconinfo
->
hbmColor
=
0
;
height
=
ciconinfo
->
nHeight
*
2
;
height
*=
2
;
}
iconinfo
->
hbmMask
=
CreateBitmap
(
ciconinfo
->
nWidth
,
height
,
...
...
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