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
66f603ce
Commit
66f603ce
authored
Sep 18, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call SetDIBits with a proper DC in order to set bitmap bits.
parent
4d0f0760
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
animate.c
dlls/comctl32/animate.c
+4
-7
No files found.
dlls/comctl32/animate.c
View file @
66f603ce
...
...
@@ -252,15 +252,12 @@ static void ANIMATE_TransparentBlt(ANIMATE_INFO *infoPtr, HDC hdcDest, HDC hdcSo
static
BOOL
ANIMATE_PaintFrame
(
ANIMATE_INFO
*
infoPtr
,
HDC
hDC
)
{
void
*
pBitmapData
=
NULL
;
LPBITMAPINFO
pBitmapInfo
=
NULL
;
void
*
pBitmapData
;
LPBITMAPINFO
pBitmapInfo
;
HDC
hdcMem
;
HBITMAP
hbmOld
;
int
nOffsetX
=
0
;
int
nOffsetY
=
0
;
int
nWidth
;
int
nHeight
;
...
...
@@ -289,11 +286,11 @@ static BOOL ANIMATE_PaintFrame(ANIMATE_INFO* infoPtr, HDC hDC)
infoPtr
->
hbmPrevFrame
=
CreateCompatibleBitmap
(
hDC
,
nWidth
,
nHeight
);
}
SetDIBits
(
hDC
,
infoPtr
->
hbmPrevFrame
,
0
,
nHeight
,
pBitmapData
,
(
LPBITMAPINFO
)
pBitmapInfo
,
DIB_RGB_COLORS
);
hdcMem
=
CreateCompatibleDC
(
hDC
);
hbmOld
=
SelectObject
(
hdcMem
,
infoPtr
->
hbmPrevFrame
);
SetDIBits
(
hdcMem
,
infoPtr
->
hbmPrevFrame
,
0
,
nHeight
,
pBitmapData
,
pBitmapInfo
,
DIB_RGB_COLORS
);
/*
* we need to get the transparent color even without ACS_TRANSPARENT,
* because the style can be changed later on and the color should always
...
...
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