Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / fish / surf / scrndef.c
blob729a8c7d2bd648d68b1fe80e92d496c898beab94
1 /* this file contains definition for the screen */
3 #include <aros/oldprograms.h>
4 #include <exec/types.h>
5 #include <intuition/intuition.h>
6 #include <graphics/gfxmacros.h>
7 #ifdef MANX
8 #include <functions.h>
9 #endif
11 #include "scrndef.h"
13 struct TextAttr myfont1 = {
14 (UBYTE *)"topaz.font", 8, 0, 0
19 struct NewScreen SurfScrnDef = {
20 0,0, /* left and top edge */
21 SurfInitW, SurfInitH+ButHeight, /* width and height */
22 SurfInitD, /* num bitplanes bit planes */
23 0,1, /* detail, block pen */
24 SurfInitType, /* lores non interlaced */
25 CUSTOMSCREEN,
26 &myfont1,
27 NULL /*(UBYTE *) "Screen" */,
28 NULL,
29 NULL
33 struct NewWindow SurfWinDef = {
34 0, ButHeight, /* left, top */
35 SurfInitW, SurfInitH, /* width, height */
36 -1, -1, /* default detail and block pen */
37 MOUSEBUTTONS | MOUSEMOVE| INTUITICKS /* | CLOSEWINDOW */,
38 RMBTRAP | SIMPLE_REFRESH | GIMMEZEROZERO | BORDERLESS
39 | BACKDROP,
40 NULL, NULL, /* gadget, checkmark */
41 NULL /* (UBYTE *) "BezSurf - By Eric Davies" */,
42 NULL, /* pointer to screen */
43 NULL, /* pointer to super bitmap */
44 10, 10, 640, 200, /* min and max dimensions */
45 CUSTOMSCREEN
48 struct NewWindow GadWinDef = {
49 0, 0, /* left, top */
50 SurfInitW, ButHeight, /* width, height */
51 -1, 0, /* default detail and block pen */
52 GADGETUP,
53 SIMPLE_REFRESH | BORDERLESS | BACKDROP,
54 NULL, NULL, /* gadget, checkmark */
55 NULL /*(UBYTE *) "Gadwin" */,
56 NULL, /* pointer to screen */
57 NULL, /* pointer to super bitmap */
58 10, 10, 10, 10, /* min and max dimensions */
59 CUSTOMSCREEN
64 struct NewWindow CntrlWinDef = {
65 0, 0, /* left, top */
66 640, 180, /* width, height */
67 -1, -1, /* default detail and block pen */
68 CLOSEWINDOW| GADGETUP| MENUPICK,
69 SIMPLE_REFRESH | WINDOWCLOSE | WINDOWDEPTH
70 | WINDOWDRAG | WINDOWSIZING,
71 NULL, NULL, /* gadget(set by program), checkmark */
72 (UBYTE *) "BezSurf - Control Panel - By Eric Davies",
73 NULL, /* pointer to screen */
74 NULL, /* pointer to super bitmap */
75 10, 10, 640, 200, /* min and max dimensions */
76 WBENCHSCREEN