Commit ddce652c authored by Alexandre Julliard's avatar Alexandre Julliard

Made ddraw and dinput separate dlls.

parent 12f29b50
...@@ -85,6 +85,8 @@ DLLS = \ ...@@ -85,6 +85,8 @@ DLLS = \
comctl32 \ comctl32 \
comdlg32 \ comdlg32 \
dciman32 \ dciman32 \
ddraw \
dinput \
dplayx \ dplayx \
dsound \ dsound \
icmp \ icmp \
......
...@@ -6185,6 +6185,8 @@ dlls/comctl32/Makefile ...@@ -6185,6 +6185,8 @@ dlls/comctl32/Makefile
dlls/commdlg/Makefile dlls/commdlg/Makefile
dlls/crtdll/Makefile dlls/crtdll/Makefile
dlls/dciman32/Makefile dlls/dciman32/Makefile
dlls/ddraw/Makefile
dlls/dinput/Makefile
dlls/display/Makefile dlls/display/Makefile
dlls/dplayx/Makefile dlls/dplayx/Makefile
dlls/dsound/Makefile dlls/dsound/Makefile
...@@ -6401,6 +6403,8 @@ dlls/comctl32/Makefile ...@@ -6401,6 +6403,8 @@ dlls/comctl32/Makefile
dlls/commdlg/Makefile dlls/commdlg/Makefile
dlls/crtdll/Makefile dlls/crtdll/Makefile
dlls/dciman32/Makefile dlls/dciman32/Makefile
dlls/ddraw/Makefile
dlls/dinput/Makefile
dlls/display/Makefile dlls/display/Makefile
dlls/dplayx/Makefile dlls/dplayx/Makefile
dlls/dsound/Makefile dlls/dsound/Makefile
......
...@@ -947,6 +947,8 @@ dlls/comctl32/Makefile ...@@ -947,6 +947,8 @@ dlls/comctl32/Makefile
dlls/commdlg/Makefile dlls/commdlg/Makefile
dlls/crtdll/Makefile dlls/crtdll/Makefile
dlls/dciman32/Makefile dlls/dciman32/Makefile
dlls/ddraw/Makefile
dlls/dinput/Makefile
dlls/display/Makefile dlls/display/Makefile
dlls/dplayx/Makefile dlls/dplayx/Makefile
dlls/dsound/Makefile dlls/dsound/Makefile
......
...@@ -8,6 +8,8 @@ DLLFILES = \ ...@@ -8,6 +8,8 @@ DLLFILES = \
comctl32/libcomctl32.@LIBEXT@ \ comctl32/libcomctl32.@LIBEXT@ \
commdlg/libcomdlg32.@LIBEXT@ \ commdlg/libcomdlg32.@LIBEXT@ \
dciman32/libdciman32.@LIBEXT@ \ dciman32/libdciman32.@LIBEXT@ \
ddraw/libddraw.@LIBEXT@ \
dinput/libdinput.@LIBEXT@ \
dplayx/libdplayx.@LIBEXT@ \ dplayx/libdplayx.@LIBEXT@ \
dsound/libdsound.@LIBEXT@ \ dsound/libdsound.@LIBEXT@ \
icmp/libicmp.@LIBEXT@ \ icmp/libicmp.@LIBEXT@ \
...@@ -94,6 +96,12 @@ libcomdlg32.@LIBEXT@ libcommdlg.@LIBEXT@: commdlg/libcomdlg32.@LIBEXT@ ...@@ -94,6 +96,12 @@ libcomdlg32.@LIBEXT@ libcommdlg.@LIBEXT@: commdlg/libcomdlg32.@LIBEXT@
libdciman32.@LIBEXT@: dciman32/libdciman32.@LIBEXT@ libdciman32.@LIBEXT@: dciman32/libdciman32.@LIBEXT@
$(RM) $@ && $(LN_S) dciman32/libdciman32.@LIBEXT@ $@ $(RM) $@ && $(LN_S) dciman32/libdciman32.@LIBEXT@ $@
libddraw.@LIBEXT@: ddraw/libddraw.@LIBEXT@
$(RM) $@ && $(LN_S) ddraw/libddraw.@LIBEXT@ $@
libdinput.@LIBEXT@: dinput/libdinput.@LIBEXT@
$(RM) $@ && $(LN_S) dinput/libdinput.@LIBEXT@ $@
libdplayx.@LIBEXT@ libdplay.@LIBEXT@: dplayx/libdplayx.@LIBEXT@ libdplayx.@LIBEXT@ libdplay.@LIBEXT@: dplayx/libdplayx.@LIBEXT@
$(RM) $@ && $(LN_S) dplayx/libdplayx.@LIBEXT@ $@ $(RM) $@ && $(LN_S) dplayx/libdplayx.@LIBEXT@ $@
......
Makefile
ddraw.spec.c
libddraw.so.1.0
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = ddraw
SOVERSION = 1.0
SPEC_SRCS = ddraw.spec
C_SRCS = \
d3dcommon.c \
d3ddevices.c \
d3dexecutebuffer.c \
d3dlight.c \
d3dmaterial.c \
d3dtexture.c \
d3dviewport.c \
ddraw_main.c
@MAKE_DLL_RULES@
### Dependencies:
Makefile
dinput.spec.c
libdinput.so.1.0
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dinput
SOVERSION = 1.0
SPEC_SRCS = dinput.spec
C_SRCS = \
dinput_main.c
@MAKE_DLL_RULES@
### Dependencies:
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
DEFAULT_DEBUG_CHANNEL(dinput) DEFAULT_DEBUG_CHANNEL(dinput);
/* Wine mouse driver object instances */ /* Wine mouse driver object instances */
#define WINE_MOUSE_X_AXIS_INSTANCE 0x0001 #define WINE_MOUSE_X_AXIS_INSTANCE 0x0001
......
...@@ -8,14 +8,6 @@ MODULE = graphics ...@@ -8,14 +8,6 @@ MODULE = graphics
C_SRCS = \ C_SRCS = \
bitblt.c \ bitblt.c \
cache.c \ cache.c \
d3dcommon.c \
d3ddevices.c \
d3dexecutebuffer.c \
d3dlight.c \
d3dmaterial.c \
d3dtexture.c \
d3dviewport.c \
ddraw.c \
dispdib.c \ dispdib.c \
driver.c \ driver.c \
env.c \ env.c \
......
...@@ -23,6 +23,8 @@ static DDSURFACEDESC sdesc; ...@@ -23,6 +23,8 @@ static DDSURFACEDESC sdesc;
static LONG vga_polling,vga_refresh; static LONG vga_polling,vga_refresh;
static HANDLE poll_timer; static HANDLE poll_timer;
static HRESULT WINAPI (*pDirectDrawCreate)(LPGUID,LPDIRECTDRAW *,LPUNKNOWN);
static void VGA_DeinstallTimer(void) static void VGA_DeinstallTimer(void)
{ {
if (poll_timer) { if (poll_timer) {
...@@ -51,7 +53,12 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth) ...@@ -51,7 +53,12 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
{ {
if (lpddraw) VGA_Exit(); if (lpddraw) VGA_Exit();
if (!lpddraw) { if (!lpddraw) {
DirectDrawCreate(NULL,&lpddraw,NULL); if (!pDirectDrawCreate)
{
HMODULE hmod = LoadLibraryA( "ddraw.dll" );
if (hmod) pDirectDrawCreate = GetProcAddress( hmod, "DirectDrawCreate" );
}
if (pDirectDrawCreate) pDirectDrawCreate(NULL,&lpddraw,NULL);
if (!lpddraw) { if (!lpddraw) {
ERR("DirectDraw is not available\n"); ERR("DirectDraw is not available\n");
return 1; return 1;
......
...@@ -6,8 +6,6 @@ VPATH = @srcdir@ ...@@ -6,8 +6,6 @@ VPATH = @srcdir@
MODULE = relay32 MODULE = relay32
SPEC_SRCS = \ SPEC_SRCS = \
ddraw.spec \
dinput.spec \
gdi32.spec \ gdi32.spec \
kernel32.spec \ kernel32.spec \
user32.spec \ user32.spec \
......
...@@ -13,7 +13,6 @@ C_SRCS = \ ...@@ -13,7 +13,6 @@ C_SRCS = \
defdlg.c \ defdlg.c \
defwnd.c \ defwnd.c \
dialog.c \ dialog.c \
dinput.c \
driver.c \ driver.c \
event.c \ event.c \
focus.c \ focus.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment