2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
17 void drawlinehoriz(int y
)
19 LONG lssa
= RREG_L(LSSA
);
20 LONG height
= RREG_W(LYMAX
);
21 LONG width
= RREG_W(LXMAX
)>>3;
24 if (y
< 0 || y
>= height
)
28 *(BYTE
*)(lssa
+((width
+1)*y
)+x
) = 0xff;
34 void drawlinevert(int x
)
36 LONG lssa
= RREG_L(LSSA
);
37 LONG height
= RREG_W(LYMAX
);
38 LONG width
= RREG_W(LXMAX
);
41 if (x
< 0 || x
>= width
)
45 *(BYTE
*)(lssa
+((width
+1)*y
)+(x
>>3)) |= 1<<(7-(x
&7));
51 void setpixel(int x
, int y
)
53 LONG lssa
= RREG_L(LSSA
);
54 LONG height
= RREG_W(LYMAX
);
55 LONG width
= RREG_W(LXMAX
);
57 if (x
< 0 || x
>= width
|| y
< 0 || y
>= height
)
62 *(BYTE
*)(lssa
+((width
+1)*y
)+(x
>>3)) |= 1<<(7-(x
&7));
66 void clearpixel(int x
, int y
)
68 LONG lssa
= RREG_L(LSSA
);
69 LONG height
= RREG_W(LYMAX
);
70 LONG width
= RREG_W(LXMAX
);
72 if (x
< 0 || x
>= width
|| y
< 0 || y
>= height
)
77 *(BYTE
*)(lssa
+((width
+1)*y
)+(x
>>3)) &= ~(1<<(7-(x
&7)));
81 void clearscreen(int value
)
83 LONG lssa
= RREG_L(LSSA
);
84 LONG height
= RREG_W(LYMAX
);
85 LONG width
= RREG_W(LXMAX
)>>3;
91 *(BYTE
*)(lssa
+((width
+1)*y
)+x
) = value
;
98 void flashscreen(int loop
)
122 void showsuccess(void)
124 LONG height
= RREG_W(LXMAX
);