2000-03-19 13:08:09 +01:00
|
|
|
/*
|
|
|
|
* GDI initialization code
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "wine/winbase16.h"
|
|
|
|
|
|
|
|
#include "gdi.h"
|
|
|
|
#include "tweak.h"
|
|
|
|
#include "win16drv.h"
|
2000-05-31 00:47:02 +02:00
|
|
|
#include "winbase.h"
|
2000-03-19 13:08:09 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GDI initialisation routine
|
|
|
|
*/
|
2000-08-19 23:38:55 +02:00
|
|
|
BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD reason, LPVOID lpvReserved)
|
2000-03-19 13:08:09 +01:00
|
|
|
{
|
2000-08-19 23:38:55 +02:00
|
|
|
if (reason != DLL_PROCESS_ATTACH) return TRUE;
|
2000-03-19 13:08:09 +01:00
|
|
|
|
|
|
|
if (!TWEAK_Init()) return FALSE;
|
|
|
|
|
|
|
|
/* GDI initialisation */
|
|
|
|
if(!GDI_Init()) return FALSE;
|
|
|
|
|
|
|
|
/* Create the Win16 printer driver */
|
|
|
|
if (!WIN16DRV_Init()) return FALSE;
|
|
|
|
|
|
|
|
/* PSDRV initialization */
|
2000-05-30 22:27:23 +02:00
|
|
|
if (!LoadLibraryA( "wineps" )) return FALSE;
|
2000-03-19 13:08:09 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
2000-08-06 04:42:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Copy (GDI.250)
|
|
|
|
*/
|
|
|
|
void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
|
|
|
|
{
|
|
|
|
memcpy( dst, src, size );
|
|
|
|
}
|