2 Copyright © 1995-2015, 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 <hidd/graphics.h>
13 #include <proto/exec.h>
14 #include <proto/graphics.h>
15 #include <proto/oop.h>
17 #include "amigavideogfx.h"
18 #include "amigavideobitmap.h"
21 #include LC_LIBDEFS_FILE
23 int Init_AmigaVideoClass(LIBBASETYPEPTR LIBBASE
);
25 static int AmigaVideo_Init(LIBBASETYPEPTR LIBBASE
)
28 struct Library
*GfxBase
, *OOPBase
;
31 D(bug("************************* AmigaVideo_Init ******************************\n"));
33 initcustom(&LIBBASE
->csd
);
34 GfxBase
= LIBBASE
->csd
.cs_GfxBase
;
36 OOPBase
= OpenLibrary("oop.library", 0);
38 LIBBASE
->csd
.cs_basebm
= OOP_FindClass(CLID_Hidd_BitMap
);
40 Init_AmigaVideoClass(LIBBASE
);
41 LIBBASE
->library
.lib_OpenCnt
= 1;
43 err
= AddDisplayDriver(LIBBASE
->csd
.amigagfxclass
, NULL
,
44 DDRV_KeepBootMode
, TRUE
,
46 DDRV_IDMask
, 0xF0000000,
49 CloseLibrary(OOPBase
);
51 D(bug("AMIGAGFXHIDD AddDisplayDriver() result: %u\n", err
));
52 return err
? FALSE
: TRUE
;
55 ADD2INITLIB(AmigaVideo_Init
, 0)