Separate wineps out of Wine's core.

This commit is contained in:
Dimitrie O. Paun 2000-05-30 20:27:23 +00:00 committed by Alexandre Julliard
parent 3951ff24ac
commit 84bde6a4a4
31 changed files with 50 additions and 31 deletions

View File

@ -140,6 +140,7 @@ DLLS = \
win87em \
windebug \
wineoss.drv \
wineps \
wing \
wininet \
winmm \

View File

@ -37,7 +37,6 @@ LIBSUBDIRS = \
graphics \
graphics/enhmetafiledrv \
graphics/metafiledrv \
graphics/psdrv \
graphics/win16drv \
if1632 \
library \
@ -105,7 +104,6 @@ LIBOBJS = \
graphics/graphics.o \
graphics/enhmetafiledrv/enhmetafiledrv.o \
graphics/metafiledrv/metafiledrv.o \
graphics/psdrv/psdrv.o \
graphics/win16drv/win16drv.o \
if1632/if1632.o \
loader/loader.o \

4
configure vendored
View File

@ -6239,6 +6239,7 @@ dlls/win32s/Makefile
dlls/win87em/Makefile
dlls/winaspi/Makefile
dlls/windebug/Makefile
dlls/wineps/Makefile
dlls/wing/Makefile
dlls/wininet/Makefile
dlls/winmm/Makefile
@ -6262,7 +6263,6 @@ files/Makefile
graphics/Makefile
graphics/enhmetafiledrv/Makefile
graphics/metafiledrv/Makefile
graphics/psdrv/Makefile
graphics/ttydrv/Makefile
graphics/win16drv/Makefile
graphics/x11drv/Makefile
@ -6473,6 +6473,7 @@ dlls/win32s/Makefile
dlls/win87em/Makefile
dlls/winaspi/Makefile
dlls/windebug/Makefile
dlls/wineps/Makefile
dlls/wing/Makefile
dlls/wininet/Makefile
dlls/winmm/Makefile
@ -6496,7 +6497,6 @@ files/Makefile
graphics/Makefile
graphics/enhmetafiledrv/Makefile
graphics/metafiledrv/Makefile
graphics/psdrv/Makefile
graphics/ttydrv/Makefile
graphics/win16drv/Makefile
graphics/x11drv/Makefile

View File

@ -1033,6 +1033,7 @@ dlls/win32s/Makefile
dlls/win87em/Makefile
dlls/winaspi/Makefile
dlls/windebug/Makefile
dlls/wineps/Makefile
dlls/wing/Makefile
dlls/wininet/Makefile
dlls/winmm/Makefile
@ -1056,7 +1057,6 @@ files/Makefile
graphics/Makefile
graphics/enhmetafiledrv/Makefile
graphics/metafiledrv/Makefile
graphics/psdrv/Makefile
graphics/ttydrv/Makefile
graphics/win16drv/Makefile
graphics/x11drv/Makefile

View File

@ -75,7 +75,6 @@ EXTRADLLNAMES = \
commdlg \
compobj \
ddeml \
dispdib \
dplay \
gdi \
keyboard \
@ -183,7 +182,7 @@ libdplayx.@LIBEXT@ libdplay.@LIBEXT@: dplayx/libdplayx.@LIBEXT@
libdsound.@LIBEXT@: dsound/libdsound.@LIBEXT@
$(RM) $@ && $(LN_S) dsound/libdsound.@LIBEXT@ $@
libgdi32.@LIBEXT@ libgdi.@LIBEXT@ libdispdib.@LIBEXT@: gdi/libgdi32.@LIBEXT@
libgdi32.@LIBEXT@ libgdi.@LIBEXT@: gdi/libgdi32.@LIBEXT@
$(RM) $@ && $(LN_S) gdi/libgdi32.@LIBEXT@ $@
libicmp.@LIBEXT@: icmp/libicmp.@LIBEXT@

View File

@ -8,7 +8,6 @@
#include "gdi.h"
#include "global.h"
#include "psdrv.h"
#include "tweak.h"
#include "win16drv.h"
@ -35,7 +34,7 @@ BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved
if (!WIN16DRV_Init()) return FALSE;
/* PSDRV initialization */
if(!PSDRV_Init()) return FALSE;
if (!LoadLibraryA( "wineps" )) return FALSE;
return TRUE;
}

4
dlls/wineps/.cvsignore Normal file
View File

@ -0,0 +1,4 @@
Makefile
libwineps.so.1.0
wineps.spec.c
wineps16.spec.c

View File

@ -1,9 +1,12 @@
DEFS = @DLLFLAGS@ -D__WINE__
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = psdrv
MODULE = wineps
SOVERSION = 1.0
ALTNAMES = wineps16
SPEC_SRCS = wineps.spec wineps16.spec
C_SRCS = \
afm.c \
@ -23,8 +26,6 @@ C_SRCS = \
ps.c \
text.c
all: $(MODULE).o
@MAKE_RULES@
@MAKE_DLL_RULES@
### Dependencies:

View File

@ -221,15 +221,35 @@ static LOGFONTA DefaultLogFont = {
* Initializes font metrics and registers driver. Called from GDI_Init()
*
*/
BOOL PSDRV_Init(void)
BOOL WINAPI PSDRV_Init( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
TRACE("\n");
PSDRV_Heap = HeapCreate(0, 0x10000, 0);
PSDRV_GetFontMetrics();
PSDRV_DefaultFont = CreateFontIndirectA(&DefaultLogFont);
return DRIVER_RegisterDriver( "WINEPS", &PSDRV_Funcs );
static int process_count = 0;
TRACE("(0x%4x, 0x%08lx, %p)\n", hinst, reason, reserved);
switch(reason) {
case DLL_PROCESS_ATTACH:
if (!process_count++) {
/* FIXME: return FALSE if we fail any of these steps */
PSDRV_Heap = HeapCreate(0, 0x10000, 0);
PSDRV_GetFontMetrics();
PSDRV_DefaultFont = CreateFontIndirectA(&DefaultLogFont);
DRIVER_RegisterDriver( "WINEPS", &PSDRV_Funcs );
}
break;
case DLL_PROCESS_DETACH:
if (!--process_count) {
DeleteObject( PSDRV_DefaultFont );
HeapDestroy( PSDRV_Heap );
DRIVER_UnregisterDriver( "WINEPS" );
}
break;
}
return TRUE;
}
/**********************************************************************
* PSDRV_CreateDC
*/

View File

@ -251,7 +251,7 @@ extern AFM *PSDRV_FindAFMinList(FONTFAMILY *head, char *name);
extern void PSDRV_AddAFMtoList(FONTFAMILY **head, AFM *afm);
extern void PSDRV_FreeAFMList( FONTFAMILY *head );
extern BOOL PSDRV_Init(void);
extern BOOL WINAPI PSDRV_Init(HINSTANCE hinst, DWORD reason, LPVOID reserved);
extern HFONT16 PSDRV_FONT_SelectObject( DC *dc, HFONT16 hfont, FONTOBJ *font);
extern HPEN PSDRV_PEN_SelectObject( DC * dc, HPEN hpen, PENOBJ * pen );
extern HBRUSH PSDRV_BRUSH_SelectObject( DC * dc, HBRUSH hbrush,

4
dlls/wineps/wineps.spec Normal file
View File

@ -0,0 +1,4 @@
name wineps
type win32
init PSDRV_Init

View File

@ -1,4 +1,4 @@
name wineps
name wineps16
type win16
13 pascal16 DeviceMode(word word str str) PSDRV_DeviceMode16

View File

@ -1 +0,0 @@
Makefile

View File

@ -1,10 +1,4 @@
*.spec.c
Makefile
call16.s
comm.spec.c
dispdib.spec.c
kernel.spec.c
system.spec.c
thunk.glue.c
toolhelp.spec.c
wineps.spec.c
wprocs.spec.c

View File

@ -7,6 +7,7 @@ MODULE = if1632
SPEC_SRCS = \
comm.spec \
dispdib.spec \
kernel.spec \
system.spec \
toolhelp.spec \

View File

@ -49,7 +49,6 @@
#include "thread.h"
#include "task.h"
#include "debugtools.h"
#include "psdrv.h"
#include "win16drv.h"
#include "callback.h"
#include "server.h"