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
1425b1b9
Commit
1425b1b9
authored
Nov 20, 2008
by
Andrew Riedi
Committed by
Alexandre Julliard
Nov 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix the loading of stretched cursors.
Based on patches by Henri Verbeet.
parent
fdba8b85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cursoricon.c
dlls/user32/cursoricon.c
+7
-7
No files found.
dlls/user32/cursoricon.c
View file @
1425b1b9
...
...
@@ -698,6 +698,13 @@ static HICON CURSORICON_CreateIconFromBMI( BITMAPINFO *bmi,
DoStretch
=
(
bmi
->
bmiHeader
.
biHeight
/
2
!=
height
)
||
(
bmi
->
bmiHeader
.
biWidth
!=
width
);
/* Scale the hotspot */
if
(
DoStretch
&&
hotspot
.
x
!=
ICON_HOTSPOT
&&
hotspot
.
y
!=
ICON_HOTSPOT
)
{
hotspot
.
x
=
(
hotspot
.
x
*
width
)
/
bmi
->
bmiHeader
.
biWidth
;
hotspot
.
y
=
(
hotspot
.
y
*
height
)
/
(
bmi
->
bmiHeader
.
biHeight
/
2
);
}
if
(
!
screen_dc
)
screen_dc
=
CreateDCW
(
DISPLAYW
,
NULL
,
NULL
,
NULL
);
if
(
screen_dc
)
{
...
...
@@ -723,14 +730,7 @@ static HICON CURSORICON_CreateIconFromBMI( BITMAPINFO *bmi,
/* Create the XOR bitmap */
if
(
DoStretch
)
{
if
(
bIcon
)
{
hXorBits
=
CreateCompatibleBitmap
(
screen_dc
,
width
,
height
);
}
else
{
hXorBits
=
CreateBitmap
(
width
,
height
,
1
,
1
,
NULL
);
}
if
(
hXorBits
)
{
HBITMAP
hOld
;
...
...
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