2 * Acess2 Window Manager v3
3 * - By John Hodge (thePowersGang)
6 * - AxWin2 Background port
9 #include <wm_renderer.h>
20 tWindow *Renderer_Background_Create(int Flags);
21 void Renderer_Background_Redraw(tWindow *Window);
22 int Renderer_Background_HandleMessage(tWindow *Target, int Msg, int Len, const void *Data);
25 tWMRenderer gRenderer_Background = {
27 .CreateWindow = Renderer_Background_Create,
28 .Redraw = Renderer_Background_Redraw,
29 .HandleMessage = Renderer_Background_HandleMessage
33 int Renderer_Background_Init(void)
35 WM_RegisterRenderer(&gRenderer_Background);
40 tWindow *Renderer_Background_Create(int Arg)
43 ret = WM_CreateWindowStruct( sizeof(struct sBgWin) );
45 ((struct sBgWin*)ret->RendererInfo)->Colour = Arg;
50 void Renderer_Background_Redraw(tWindow *Window)
52 struct sBgWin *info = Window->RendererInfo;
54 WM_Render_FillRect(Window, 0, 0, 0xFFFF, 0xFFFF, info->Colour);
57 int Renderer_Background_HandleMessage(tWindow *Target, int Msg, int Len, const void *Data)
61 // TODO: Handle resize