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
5387b672
Commit
5387b672
authored
Sep 19, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Directly copy DIB bits into destination DC.
parent
4752553d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
+8
-20
mmoutput.c
dlls/mciavi32/mmoutput.c
+8
-20
No files found.
dlls/mciavi32/mmoutput.c
View file @
5387b672
...
...
@@ -597,10 +597,8 @@ void MCIAVI_PlayAudioBlocks(WINE_MCIAVI* wma, unsigned nHdr, LPWAVEHDR waveHdr)
LRESULT
MCIAVI_PaintFrame
(
WINE_MCIAVI
*
wma
,
HDC
hDC
)
{
void
*
pBitmapData
=
NULL
;
LPBITMAPINFO
pBitmapInfo
=
NULL
;
HDC
hdcMem
;
HBITMAP
hbmOld
;
void
*
pBitmapData
;
LPBITMAPINFO
pBitmapInfo
;
int
nWidth
;
int
nHeight
;
...
...
@@ -619,7 +617,6 @@ LRESULT MCIAVI_PaintFrame(WINE_MCIAVI* wma, HDC hDC)
mmioSeek
(
wma
->
hFile
,
wma
->
lpVideoIndex
[
wma
->
dwCurrVideoFrame
].
dwOffset
,
SEEK_SET
);
mmioRead
(
wma
->
hFile
,
wma
->
indata
,
wma
->
lpVideoIndex
[
wma
->
dwCurrVideoFrame
].
dwSize
);
/* FIXME ? */
wma
->
inbih
->
biSizeImage
=
wma
->
lpVideoIndex
[
wma
->
dwCurrVideoFrame
].
dwSize
;
if
(
wma
->
hic
&&
ICDecompress
(
wma
->
hic
,
0
,
wma
->
inbih
,
wma
->
indata
,
...
...
@@ -647,21 +644,12 @@ LRESULT MCIAVI_PaintFrame(WINE_MCIAVI* wma, HDC hDC)
nHeight
=
wma
->
inbih
->
biHeight
;
}
if
(
!
wma
->
hbmFrame
)
wma
->
hbmFrame
=
CreateCompatibleBitmap
(
hDC
,
nWidth
,
nHeight
);
StretchDIBits
(
hDC
,
wma
->
dest
.
left
,
wma
->
dest
.
top
,
wma
->
dest
.
right
-
wma
->
dest
.
left
,
wma
->
dest
.
bottom
-
wma
->
dest
.
top
,
wma
->
source
.
left
,
wma
->
source
.
top
,
wma
->
source
.
right
-
wma
->
source
.
left
,
wma
->
source
.
bottom
-
wma
->
source
.
top
,
pBitmapData
,
pBitmapInfo
,
DIB_RGB_COLORS
,
SRCCOPY
);
SetDIBits
(
hDC
,
wma
->
hbmFrame
,
0
,
nHeight
,
pBitmapData
,
pBitmapInfo
,
DIB_RGB_COLORS
);
hdcMem
=
CreateCompatibleDC
(
hDC
);
hbmOld
=
SelectObject
(
hdcMem
,
wma
->
hbmFrame
);
StretchBlt
(
hDC
,
wma
->
dest
.
left
,
wma
->
dest
.
top
,
wma
->
dest
.
right
,
wma
->
dest
.
bottom
,
hdcMem
,
wma
->
source
.
left
,
wma
->
source
.
top
,
wma
->
source
.
right
,
wma
->
source
.
bottom
,
SRCCOPY
);
SelectObject
(
hdcMem
,
hbmOld
);
DeleteDC
(
hdcMem
);
return
TRUE
;
}
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