start service tasks separately in-case platforms need to perform additional set-up...
[AROS.git] / rom / cgxbootpic / renderbootpic.c
blob06bb762c2a7070c911f87c116912f4afa7c942a9
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
7 #include <utility/tagitem.h>
8 #include <aros/libcall.h>
9 #include <proto/utility.h>
11 #include "cgxbootpic_intern.h"
12 #include <bootpic_image.h>
14 #define DEBUG 1
15 #include <aros/debug.h>
16 #undef kprintf
18 /*****************************************************************************
20 NAME */
21 AROS_LH4(void, RenderBootPic,
23 /* SYNOPSIS */
25 AROS_LHA(void *, framebuffer, A0),
26 AROS_LHA(ULONG, width, D0),
27 AROS_LHA(ULONG, height, D1),
28 AROS_LHA(ULONG, depth, D2),
29 /* LOCATION */
31 struct CgxBootPicBase *, CgxBootPicBase, 5, CgxBootPic)
33 /* FUNCTION
34 This function dumps a boot picture into the specified framebuffer.
36 INPUTS
38 RESULT
40 NOTES
41 The Gfx susbsytem opens cgxbootpic.library if it is
42 available, and when displays are created, calls this
43 function with the displays framebuffer as input to render
44 the selected bootpic.
46 EXAMPLE
48 BUGS
49 This implementation is bugged - need to check what the real library
50 on m68k expects as params and correct this code appropriately.
51 SEE ALSO
53 INTERNALS
55 ******************************************************************************/
57 AROS_LIBFUNC_INIT
59 D(bug("[CgxBootPic] %s()\n", __PRETTY_FUNCTION__));
61 D(bug("[CgxBootPic] %s: BootPic Info: %dx%dx%d\n", __PRETTY_FUNCTION__, BOOTPIC_WIDTH, BOOTPIC_HEIGHT, BOOTPIC_COLORS));
62 D(bug("[CgxBootPic] %s: Rendering to %dx%dx%d framebuffer @ 0x%p\n", __PRETTY_FUNCTION__, width, height, depth, framebuffer));
63 return;
65 AROS_LIBFUNC_EXIT
66 } /* RenderBootPic */