2 Copyright © 2009-2011, The AROS Development Team. All rights reserved.
6 #include <libraries/muiscreen.h>
7 #include <utility/hooks.h>
8 #include <intuition/screens.h>
9 #include <proto/intuition.h>
10 #include <proto/exec.h>
11 #include <exec/lists.h>
13 #include <aros/debug.h>
15 #include "muiscreen_intern.h"
17 /*****************************************************************************
20 #include <proto/muiscreen.h>
22 AROS_LH1(char *, MUIS_OpenPubScreen
,
25 AROS_LHA(struct MUI_PubScreenDesc
*, desc
, A0
),
28 struct MUIScreenBase_intern
*, MUIScreenBase
, 7, MUIScreen
)
46 ******************************************************************************/
51 struct TextAttr
*font
= NULL
;
52 struct Hook
*backfillHook
= NULL
;
55 D(bug("MUIS_OpenPubScreen(%p) name %s\n", desc
, desc
->Name
));
57 // TODO desc->SysDefault
58 // TODO desc->AutoClose
59 // TODO desc->CloseGadget
60 // TODO desc->SystemPens
63 struct Screen
*screen
= OpenScreenTags(NULL
,
64 SA_Type
, (IPTR
) PUBLICSCREEN
,
65 SA_PubName
, desc
->Name
,
66 SA_Title
, desc
->Title
,
68 (backfillHook
? SA_BackFill
: TAG_IGNORE
), backfillHook
,
69 SA_DisplayID
, (IPTR
) desc
->DisplayID
,
70 SA_Width
, (IPTR
) desc
->DisplayWidth
,
71 SA_Height
, (IPTR
) desc
->DisplayHeight
,
72 SA_Depth
, (IPTR
) desc
->DisplayDepth
,
73 SA_Overscan
, (IPTR
) desc
->OverscanType
,
74 SA_AutoScroll
, (IPTR
) desc
->AutoScroll
,
75 SA_Draggable
, (IPTR
) !desc
->NoDrag
,
76 SA_Exclusive
, (IPTR
) desc
->Exclusive
,
77 SA_Interleaved
, (IPTR
) desc
->Interleaved
,
78 SA_Behind
, (IPTR
) desc
->Behind
,
83 if ((PubScreenStatus(screen
, 0) & 1) == 0)
85 D(bug("Can't make screen public\n"));
92 ForeachNode(&MUIScreenBase
->clients
, node
)
94 struct MUIS_InfoClient
*client
= (struct MUIS_InfoClient
*) node
;
95 Signal(client
->task
, client
->sigbit
);