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
7aeefa30
Commit
7aeefa30
authored
Aug 10, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remember to draw the icon when SS_CENTERIMAGE is set.
parent
5d72acf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
static.c
dlls/user/static.c
+4
-8
No files found.
dlls/user/static.c
View file @
7aeefa30
...
...
@@ -121,7 +121,7 @@ static HICON STATIC_SetIcon( HWND hwnd, HICON hicon, DWORD style )
{
HICON
prevIcon
;
CURSORICONINFO
*
info
;
if
((
style
&
SS_TYPEMASK
)
!=
SS_ICON
)
return
0
;
info
=
hicon
?
(
CURSORICONINFO
*
)
GlobalLock16
(
HICON_16
(
hicon
))
:
NULL
;
if
(
hicon
&&
!
info
)
{
...
...
@@ -759,14 +759,10 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style )
iconRect
.
top
=
(
rc
.
bottom
-
rc
.
top
)
/
2
-
info
->
nHeight
/
2
;
iconRect
.
right
=
iconRect
.
left
+
info
->
nWidth
;
iconRect
.
bottom
=
iconRect
.
top
+
info
->
nHeight
;
FillRect
(
hdc
,
&
rc
,
hbrush
);
}
else
{
FillRect
(
hdc
,
&
rc
,
hbrush
);
DrawIconEx
(
hdc
,
rc
.
left
,
rc
.
top
,
hIcon
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
0
,
NULL
,
DI_NORMAL
);
}
FillRect
(
hdc
,
&
rc
,
hbrush
);
DrawIconEx
(
hdc
,
rc
.
left
,
rc
.
top
,
hIcon
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
0
,
NULL
,
DI_NORMAL
);
}
if
(
info
)
GlobalUnlock16
(
HICON_16
(
hIcon
));
}
...
...
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