Skip to content
Snippets Groups Projects
Commit 84bde6a4 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard
Browse files

Separate wineps out of Wine's core.

parent 3951ff24
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,7 @@ DLLS = \
win87em \
windebug \
wineoss.drv \
wineps \
wing \
wininet \
winmm \
......
......@@ -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 \
......
......@@ -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
......
......@@ -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
......
......@@ -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@
......
......@@ -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;
}
Makefile
libwineps.so.1.0
wineps.spec.c
wineps16.spec.c
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:
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -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
*/
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment