grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / graphics / colorconv_init.c
blob5fededc4bfdbf34778e14dae85f205f1f1b1f047
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics hidd color conversion initialization code.
6 Lang: English.
7 */
8 #include <exec/types.h>
9 #include <proto/exec.h>
10 #include <aros/symbolsets.h>
12 #include "graphics_intern.h"
14 #include LC_LIBDEFS_FILE
16 #undef csd
18 void SetRGBConversionFunctions(HIDDT_RGBConversionFunction rgbconvertfuncs[NUM_RGB_STDPIXFMT][NUM_RGB_STDPIXFMT]);
19 void SetArchRGBConversionFunctions(HIDDT_RGBConversionFunction rgbconvertfuncs[NUM_RGB_STDPIXFMT][NUM_RGB_STDPIXFMT]);
21 static int ColorConv_Init(LIBBASETYPEPTR LIBBASE)
23 struct class_static_data *csd = &LIBBASE->hdg_csd;
25 EnterFunc(bug("ColorConv_Init()\n"));
27 ObtainSemaphore(&csd->rgbconvertfuncs_sem);
29 SetRGBConversionFunctions(csd->rgbconvertfuncs);
30 SetArchRGBConversionFunctions(csd->rgbconvertfuncs);
32 ReleaseSemaphore(&csd->rgbconvertfuncs_sem);
34 ReturnInt("ColorConv_Init", ULONG, TRUE);
37 ADD2INITLIB(ColorConv_Init, -1)