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
052b3f16
Commit
052b3f16
authored
Jan 28, 2001
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 28, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few oddities.
parent
0639d603
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
msvideo_main.c
dlls/msvideo/msvideo_main.c
+20
-9
No files found.
dlls/msvideo/msvideo_main.c
View file @
052b3f16
...
@@ -298,10 +298,9 @@ HIC VFWAPI ICLocate(
...
@@ -298,10 +298,9 @@ HIC VFWAPI ICLocate(
if
(
!
strncasecmp
(
type
,
s
,
5
))
{
if
(
!
strncasecmp
(
type
,
s
,
5
))
{
char
*
s2
=
s
;
char
*
s2
=
s
;
while
(
*
s2
!=
'\0'
&&
*
s2
!=
'.'
)
s2
++
;
while
(
*
s2
!=
'\0'
&&
*
s2
!=
'.'
)
s2
++
;
if
(
*
s2
)
{
if
(
*
s2
++
)
{
HIC
h
;
HIC
h
;
*
s2
++
=
'\0'
;
h
=
ICOpen
(
fccType
,
*
(
DWORD
*
)
s2
,
wMode
);
h
=
ICOpen
(
fccType
,
*
(
DWORD
*
)
s2
,
wMode
);
if
(
h
)
{
if
(
h
)
{
if
(
!
ICSendMessage
(
h
,
querymsg
,(
DWORD
)
lpbiIn
,(
DWORD
)
lpbiOut
))
if
(
!
ICSendMessage
(
h
,
querymsg
,(
DWORD
)
lpbiIn
,(
DWORD
)
lpbiOut
))
...
@@ -322,7 +321,7 @@ HIC VFWAPI ICLocate(
...
@@ -322,7 +321,7 @@ HIC VFWAPI ICLocate(
}
}
type
[
4
]
=
handler
[
4
]
=
'\0'
;
type
[
4
]
=
handler
[
4
]
=
'\0'
;
FIXME
(
"(%.4s,%.4s,%p,%p,0x%04x),unhandle
d!
\n
"
,
type
,
handler
,
lpbiIn
,
lpbiOut
,
wMode
);
WARN
(
"(%.4s,%.4s,%p,%p,0x%04x) not foun
d!
\n
"
,
type
,
handler
,
lpbiIn
,
lpbiOut
,
wMode
);
return
0
;
return
0
;
}
}
...
@@ -342,7 +341,6 @@ HIC VFWAPI ICGetDisplayFormat(
...
@@ -342,7 +341,6 @@ HIC VFWAPI ICGetDisplayFormat(
INT
depth
,
INT
dx
,
INT
dy
)
INT
depth
,
INT
dx
,
INT
dy
)
{
{
HIC
tmphic
=
hic
;
HIC
tmphic
=
hic
;
LRESULT
lres
;
FIXME
(
"(0x%08lx,%p,%p,%d,%d,%d),stub!
\n
"
,(
DWORD
)
hic
,
lpbiIn
,
lpbiOut
,
depth
,
dx
,
dy
);
FIXME
(
"(0x%08lx,%p,%p,%d,%d,%d),stub!
\n
"
,(
DWORD
)
hic
,
lpbiIn
,
lpbiOut
,
depth
,
dx
,
dy
);
if
(
!
tmphic
)
{
if
(
!
tmphic
)
{
...
@@ -350,16 +348,24 @@ HIC VFWAPI ICGetDisplayFormat(
...
@@ -350,16 +348,24 @@ HIC VFWAPI ICGetDisplayFormat(
if
(
!
tmphic
)
if
(
!
tmphic
)
return
tmphic
;
return
tmphic
;
}
}
if
((
dy
==
lpbiIn
->
biHeight
)
||
(
dx
==
lpbiIn
->
biWidth
))
if
((
dy
==
lpbiIn
->
biHeight
)
&&
(
dx
==
lpbiIn
->
biWidth
))
dy
=
dx
=
0
;
/* no resize needed */
dy
=
dx
=
0
;
/* no resize needed */
/* Can we decompress it ? */
/* Can we decompress it ? */
lres
=
ICDecompressQuery
(
tmphic
,
lpbiIn
,
NULL
);
if
(
ICDecompressQuery
(
tmphic
,
lpbiIn
,
NULL
)
!=
0
)
if
(
lres
)
goto
errout
;
/* no, sorry */
goto
errout
;
/* no, sorry */
ICDecompressGetFormat
(
tmphic
,
lpbiIn
,
lpbiOut
);
ICDecompressGetFormat
(
tmphic
,
lpbiIn
,
lpbiOut
);
*
lpbiOut
=*
lpbiIn
;
lpbiOut
->
biCompression
=
0
;
if
(
lpbiOut
->
biCompression
!=
0
)
{
FIXME
(
"Ooch, how come decompressor outputs compressed data (%ld)??
\n
"
,
lpbiOut
->
biCompression
);
}
if
(
lpbiOut
->
biSize
<
sizeof
(
*
lpbiOut
))
{
FIXME
(
"Ooch, size of output BIH is too small (%ld)
\n
"
,
lpbiOut
->
biSize
);
lpbiOut
->
biSize
=
sizeof
(
*
lpbiOut
);
lpbiOut
->
biSize
=
sizeof
(
*
lpbiOut
);
}
if
(
!
depth
)
{
if
(
!
depth
)
{
HDC
hdc
;
HDC
hdc
;
...
@@ -717,6 +723,9 @@ LPVOID MSVIDEO_MapMsg16To32(UINT msg, LPDWORD lParam1, LPDWORD lParam2) {
...
@@ -717,6 +723,9 @@ LPVOID MSVIDEO_MapMsg16To32(UINT msg, LPDWORD lParam1, LPDWORD lParam2) {
*
lParam2
=
sizeof
(
ICDRAW
);
*
lParam2
=
sizeof
(
ICDRAW
);
}
}
break
;
break
;
case
ICM_DRAW_START
:
case
ICM_DRAW_STOP
:
break
;
default:
default:
FIXME
(
"%d is not yet handled. Expect a crash.
\n
"
,
msg
);
FIXME
(
"%d is not yet handled. Expect a crash.
\n
"
,
msg
);
}
}
...
@@ -850,6 +859,8 @@ LRESULT MSVIDEO_SendMessage(HIC hic,UINT msg,DWORD lParam1,DWORD lParam2, BOOL b
...
@@ -850,6 +859,8 @@ LRESULT MSVIDEO_SendMessage(HIC hic,UINT msg,DWORD lParam1,DWORD lParam2, BOOL b
#undef XX
#undef XX
if
(
!
whic
)
return
ICERR_BADHANDLE
;
if
(
whic
->
driverproc
)
{
/* IC is a function */
if
(
whic
->
driverproc
)
{
/* IC is a function */
bDrv32
=
whic
->
private
;
bDrv32
=
whic
->
private
;
}
else
{
}
else
{
...
...
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