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
3cd145f6
Commit
3cd145f6
authored
Oct 29, 2014
by
Huw Davies
Committed by
Alexandre Julliard
Oct 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Merge the blitting of the centred and non-centred cases.
parent
d3c565f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
static.c
dlls/user32/static.c
+7
-11
No files found.
dlls/user32/static.c
View file @
3cd145f6
...
...
@@ -775,19 +775,15 @@ static void STATIC_PaintBitmapfn(HWND hwnd, HDC hdc, DWORD style )
GetClientRect
(
hwnd
,
&
rcClient
);
if
(
style
&
SS_CENTERIMAGE
)
{
INT
x
,
y
;
x
=
(
rcClient
.
right
-
rcClient
.
left
)
/
2
-
bm
.
bmWidth
/
2
;
y
=
(
rcClient
.
bottom
-
rcClient
.
top
)
/
2
-
bm
.
bmHeight
/
2
;
FillRect
(
hdc
,
&
rcClient
,
hbrush
);
BitBlt
(
hdc
,
x
,
y
,
bm
.
bmWidth
,
bm
.
bmHeight
,
hMemDC
,
0
,
0
,
SRCCOPY
);
}
else
{
StretchBlt
(
hdc
,
0
,
0
,
rcClient
.
right
-
rcClient
.
left
,
rcClient
.
bottom
-
rcClient
.
top
,
hMemDC
,
0
,
0
,
bm
.
bmWidth
,
bm
.
bmHeight
,
SRCCOPY
);
rcClient
.
left
=
(
rcClient
.
right
-
rcClient
.
left
)
/
2
-
bm
.
bmWidth
/
2
;
rcClient
.
top
=
(
rcClient
.
bottom
-
rcClient
.
top
)
/
2
-
bm
.
bmHeight
/
2
;
rcClient
.
right
=
rcClient
.
left
+
bm
.
bmWidth
;
rcClient
.
bottom
=
rcClient
.
top
+
bm
.
bmHeight
;
}
StretchBlt
(
hdc
,
rcClient
.
left
,
rcClient
.
top
,
rcClient
.
right
-
rcClient
.
left
,
rcClient
.
bottom
-
rcClient
.
top
,
hMemDC
,
0
,
0
,
bm
.
bmWidth
,
bm
.
bmHeight
,
SRCCOPY
);
SelectObject
(
hMemDC
,
oldbitmap
);
DeleteDC
(
hMemDC
);
}
...
...
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