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
55d247ef
Commit
55d247ef
authored
Jul 11, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Match cursor size in priority over color depth.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
06b90fe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
cursoricon.c
dlls/user32/cursoricon.c
+12
-6
No files found.
dlls/user32/cursoricon.c
View file @
55d247ef
...
...
@@ -580,11 +580,14 @@ static int CURSORICON_FindBestCursor( LPCVOID dir, DWORD size, fnGetCIEntry get_
{
if
(
cx
>
width
||
cy
>
height
)
continue
;
if
(
cx
<
maxwidth
||
cy
<
maxheight
)
continue
;
if
(
loadflags
&
LR_MONOCHROME
)
if
(
cx
==
maxwidth
&&
cy
==
maxheight
)
{
if
(
maxbits
&&
bits
>=
maxbits
)
continue
;
if
(
loadflags
&
LR_MONOCHROME
)
{
if
(
maxbits
&&
bits
>=
maxbits
)
continue
;
}
else
if
(
bits
<=
maxbits
)
continue
;
}
else
if
(
bits
<=
maxbits
)
continue
;
bestEntry
=
i
;
maxwidth
=
cx
;
maxheight
=
cy
;
...
...
@@ -598,11 +601,14 @@ static int CURSORICON_FindBestCursor( LPCVOID dir, DWORD size, fnGetCIEntry get_
for
(
i
=
0
;
get_entry
(
dir
,
size
,
i
,
&
cx
,
&
cy
,
&
bits
);
i
++
)
{
if
(
cx
>
maxwidth
||
cy
>
maxheight
)
continue
;
if
(
loadflags
&
LR_MONOCHROME
)
if
(
cx
==
maxwidth
&&
cy
==
maxheight
)
{
if
(
maxbits
&&
bits
>=
maxbits
)
continue
;
if
(
loadflags
&
LR_MONOCHROME
)
{
if
(
maxbits
&&
bits
>=
maxbits
)
continue
;
}
else
if
(
bits
<=
maxbits
)
continue
;
}
else
if
(
bits
<=
maxbits
)
continue
;
bestEntry
=
i
;
maxwidth
=
cx
;
maxheight
=
cy
;
...
...
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