Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / fish / surf / scrnio.h
blob1bd2faa4944a49391dec73267b03c83b0a7155b3
1 #ifndef SCRNIO_H
2 #define SCRNIO_H 1
4 #ifndef MYTYPES_H_FILE
5 #include "mytypes.h"
6 #endif
7 extern void InitWindow();
8 extern void CloseDisplay();
9 extern void SetMono();
10 extern void ClearWindow();
11 extern void DrawPoly();
13 extern short DitherPower, DitherLevels;
14 extern int WinHOrig, WinVOrig;
15 extern int XOR, WRITE;
16 extern short DitherMask;
18 extern void FreeOldDither();
19 extern bool AllocDither();
21 #define CntrX(XVAL) ((XVAL) - WinHOrig)
22 #define CntrY(YVAL) (WinVOrig - (YVAL)) /* fudge for the mouse */
24 #define UCntrX(XVAL) ((XVAL) + WinHOrig)
25 #define UCntrY(YVAL) (WinVOrig - (YVAL))
27 #endif /* SCRNIO_H */