2 Copyright © 2003, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
7 #include <intuition/intuition.h>
8 #include <utility/tagitem.h>
9 #include <proto/intuition.h>
10 #include <proto/graphics.h>
14 struct Window
*background
= NULL
;
15 struct Window
*window
= NULL
;
16 struct Screen
*screen
= NULL
;
17 struct RastPort
*rp
= NULL
;
22 screen
= LockPubScreen( NULL
);
25 width
= screen
->Width
/ 3;
28 background
= OpenWindowTags
33 WA_Width
, screen
->Width
,
34 WA_Height
, screen
->Height
,
39 window
= OpenWindowTags
42 WA_Title
, (IPTR
) "Unpacking...",
44 WA_InnerHeight
, height
,
45 WA_Left
, screen
->Width
/ 2 - width
/ 2,
46 WA_Top
, screen
->Height
/ 2 - height
/ 2,
47 WA_GimmeZeroZero
, TRUE
,
50 WA_CustomScreen
, (IPTR
) screen
,
54 if( background
!= NULL
&& window
!= NULL
)
56 SetAPen( background
->RPort
, 1 );
57 RectFill( background
->RPort
, 0, 0, screen
->Width
, screen
->Height
);
73 if( window
!= NULL
) CloseWindow( window
);
74 if( background
!= NULL
) CloseWindow( background
);
75 if( screen
!= NULL
) UnlockPubScreen( NULL
, screen
);
80 void GUI_Update( LONG position
, LONG max
)
85 newx
= (position
* width
) / max
;
88 RectFill( rp
, oldx
, 0, newx
, height
);