2 Copyright © 1995-2019, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
9 #include <aros/symbolsets.h>
10 #include <graphics/driver.h>
11 #include <graphics/gfxbase.h>
12 #include <proto/exec.h>
13 #include <proto/graphics.h>
14 #include <proto/oop.h>
16 #include "p96gfx_intern.h"
17 #include "p96gfx_bitmap.h"
19 #include LC_LIBDEFS_FILE
21 BOOL
P96GFX__Initialise(LIBBASETYPEPTR LIBBASE
);
26 static int P96GFX_LibInit(LIBBASETYPEPTR LIBBASE
)
28 struct ExecBase
*SysBase
= LIBBASE
->csd
.cs_SysBase
;
29 struct Library
*OOPBase
= LIBBASE
->csd
.cs_OOPBase
;
30 LIBBASE
->csd
.cs_GfxBase
= TaggedOpenLibrary(TAGGEDOPEN_GRAPHICS
);
31 struct Library
*GfxBase
= LIBBASE
->csd
.cs_GfxBase
;
33 D(bug("[HiddP96Gfx] %s() ******************************\n", __func__
));
38 LIBBASE
->csd
.basebm
= OOP_FindClass(CLID_Hidd_BitMap
);
40 if (!P96GFX__Initialise(LIBBASE
)) {
41 D(bug("[HiddP96Gfx] %s: P96GFX__Initialise failed\n", __func__
));
42 CloseLibrary(GfxBase
);
48 ADD2INITLIB(P96GFX_LibInit
, 0)