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
545ecf2e
Commit
545ecf2e
authored
Feb 10, 2004
by
Ge van Geldorp
Committed by
Alexandre Julliard
Feb 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set upper-left corner of destination to (0, 0), using
GetBitmapDimensionEx doesn't make sense.
parent
54b6ccd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
static.c
controls/static.c
+1
-3
No files found.
controls/static.c
View file @
545ecf2e
...
...
@@ -568,14 +568,12 @@ static void STATIC_PaintBitmapfn(HWND hwnd, HDC hdc, DWORD style )
if
((
hBitmap
=
(
HBITMAP
)
GetWindowLongA
(
hwnd
,
HICON_GWL_OFFSET
)))
{
BITMAP
bm
;
SIZE
sz
;
if
(
GetObjectType
(
hBitmap
)
!=
OBJ_BITMAP
)
return
;
if
(
!
(
hMemDC
=
CreateCompatibleDC
(
hdc
)))
return
;
GetObjectW
(
hBitmap
,
sizeof
(
bm
),
&
bm
);
GetBitmapDimensionEx
(
hBitmap
,
&
sz
);
oldbitmap
=
SelectObject
(
hMemDC
,
hBitmap
);
BitBlt
(
hdc
,
sz
.
cx
,
sz
.
cy
,
bm
.
bmWidth
,
bm
.
bmHeight
,
hMemDC
,
0
,
0
,
BitBlt
(
hdc
,
0
,
0
,
bm
.
bmWidth
,
bm
.
bmHeight
,
hMemDC
,
0
,
0
,
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