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
7c598742
Commit
7c598742
authored
Nov 20, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer using Win32 API relative to 16 bit subsystem for the 32 bit
part.
parent
f086286d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
26 deletions
+28
-26
drawdib.c
dlls/msvideo/drawdib.c
+0
-0
msvideo16.c
dlls/msvideo/msvideo16.c
+8
-13
msvideo_main.c
dlls/msvideo/msvideo_main.c
+0
-0
msvideo_private.h
dlls/msvideo/msvideo_private.h
+20
-13
No files found.
dlls/msvideo/drawdib.c
View file @
7c598742
This diff is collapsed.
Click to expand it.
dlls/msvideo/msvideo16.c
View file @
7c598742
...
...
@@ -22,12 +22,9 @@
#include <stdio.h>
#include <string.h>
#include "winbase.h"
#include "windef.h"
#include "msvideo_private.h"
#include "winver.h"
#include "vfw.h"
#include "vfw16.h"
#include "msvideo_private.h"
#include "stackframe.h"
#include "wine/debug.h"
...
...
@@ -106,7 +103,7 @@ BOOL16 VFWAPI DrawDibSetPalette16(HDRAWDIB16 hdd, HPALETTE16 hpal)
UINT16
VFWAPI
DrawDibRealize16
(
HDRAWDIB16
hdd
,
HDC16
hdc
,
BOOL16
fBackground
)
{
return
(
UINT16
)
DrawDibRealize
(
HDRAWDIB_32
(
hdd
),
HDC_32
(
hdc
),
fBackground
);
return
(
UINT16
)
DrawDibRealize
(
HDRAWDIB_32
(
hdd
),
HDC_32
(
hdc
),
fBackground
);
}
/*************************************************************************
...
...
@@ -685,7 +682,7 @@ static LRESULT CALLBACK IC_Callback3216(HIC hic, HDRVR hdrv, UINT msg, DWORD l
WINE_HIC
*
whic
;
LRESULT
ret
=
0
;
whic
=
GlobalLock16
(
HIC_16
(
hic
)
);
whic
=
MSVIDEO_GetHicPtr
(
hic
);
if
(
whic
)
{
switch
(
msg
)
...
...
@@ -703,9 +700,8 @@ static LRESULT CALLBACK IC_Callback3216(HIC hic, HDRVR hdrv, UINT msg, DWORD l
UnMapLS
(
lp2
);
break
;
}
GlobalUnlock16
(
HIC_16
(
hic
));
}
else
ret
=
MMSYSERR_ERROR
;
else
ret
=
ICERR_BADHANDLE
;
return
ret
;
}
...
...
@@ -717,7 +713,7 @@ HIC16 VFWAPI ICOpenFunction16(DWORD fccType, DWORD fccHandler, UINT16 wMode, FAR
HIC
hic32
;
hic32
=
MSVIDEO_OpenFunction
(
fccType
,
fccHandler
,
wMode
,
(
DRIVERPROC
)
IC_Callback3216
,
(
D
RIVERPROC16
)
lpfnHandler
);
(
DRIVERPROC
)
IC_Callback3216
,
(
D
WORD
)
lpfnHandler
);
return
HIC_16
(
hic32
);
}
...
...
@@ -726,10 +722,10 @@ HIC16 VFWAPI ICOpenFunction16(DWORD fccType, DWORD fccHandler, UINT16 wMode, FAR
*/
LRESULT
VFWAPI
ICSendMessage16
(
HIC16
hic
,
UINT16
msg
,
DWORD
lParam1
,
DWORD
lParam2
)
{
LRESULT
ret
=
MMSYSERR_ERROR
;
LRESULT
ret
=
ICERR_BADHANDLE
;
WINE_HIC
*
whic
;
whic
=
GlobalLock16
(
hic
);
whic
=
MSVIDEO_GetHicPtr
(
HIC_32
(
hic
)
);
if
(
whic
)
{
/* we've got a 16 bit driver proc... call it directly */
...
...
@@ -747,7 +743,6 @@ LRESULT VFWAPI ICSendMessage16(HIC16 hic, UINT16 msg, DWORD lParam1, DWORD lPara
if
(
data16
)
MSVIDEO_UnmapMsg16To32
(
msg
,
data16
,
&
lParam1
,
&
lParam2
);
}
GlobalUnlock16
(
hic
);
}
return
ret
;
}
...
...
@@ -841,7 +836,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
static
LRESULT
CALLBACK
IC_CallTo16
(
HDRVR
hdrv
,
HIC
hic
,
UINT
msg
,
LPARAM
lp1
,
LPARAM
lp2
)
{
#if 0
WINE_HIC* whic =
GlobalLock16(HIC_16(hic)
);
WINE_HIC* whic =
IC_GetPtr(hic
);
LRESULT ret = 0;
...
...
dlls/msvideo/msvideo_main.c
View file @
7c598742
This diff is collapsed.
Click to expand it.
dlls/msvideo/msvideo_private.h
View file @
7c598742
...
...
@@ -19,24 +19,31 @@
#ifndef __WINE_MSVIDEO_PRIVATE_H
#define __WINE_MSVIDEO_PRIVATE_H
#include "winbase.h"
#include "windef.h"
#include "vfw.h"
/* HIC struct (same layout as Win95 one) */
typedef
struct
tagWINE_HIC
{
DWORD
magic
;
/* 00: 'Smag' */
HANDLE
curthread
;
/* 04: */
DWORD
type
;
/* 08: */
DWORD
handler
;
/* 0C: */
HDRVR
hdrv
;
/* 10: */
DWORD
private
;
/* 14:(handled by SendDriverMessage)*/
DRIVERPROC
driverproc
;
/* 18:(handled by SendDriverMessage)*/
DWORD
x1
;
/* 1c: name? */
WORD
x2
;
/* 20: */
DWORD
x3
;
/* 22: */
DWORD
magic
;
/* 00: 'Smag' */
HANDLE
curthread
;
/* 04: */
DWORD
type
;
/* 08: */
DWORD
handler
;
/* 0C: */
HDRVR
hdrv
;
/* 10: */
DWORD
private
;
/* 14:(handled by SendDriverMessage)*/
DRIVERPROC
driverproc
;
/* 18:(handled by SendDriverMessage)*/
DWORD
x1
;
/* 1c: name? */
WORD
x2
;
/* 20: */
DWORD
x3
;
/* 22: */
/* 26: */
DRIVERPROC16
driverproc16
;
/* Wine specific flags */
DWORD
driverproc16
;
/* Wine specific flags */
HIC
hic
;
struct
tagWINE_HIC
*
next
;
}
WINE_HIC
;
HIC
MSVIDEO_OpenFunction
(
DWORD
,
DWORD
,
UINT
,
DRIVERPROC
,
DRIVERPROC16
);
LRESULT
MSVIDEO_SendMessage
(
HIC
,
UINT
,
DWORD
,
DWORD
);
HIC
MSVIDEO_OpenFunction
(
DWORD
,
DWORD
,
UINT
,
DRIVERPROC
,
DWORD
);
LRESULT
MSVIDEO_SendMessage
(
HIC
,
UINT
,
DWORD
,
DWORD
);
WINE_HIC
*
MSVIDEO_GetHicPtr
(
HIC
);
extern
LRESULT
(
CALLBACK
*
pFnCallTo16
)(
HDRVR
,
HIC
,
UINT
,
LPARAM
,
LPARAM
);
...
...
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