2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
19 void drawlinehoriz(int y
)
21 Long lssa
= RREG_L(LSSA
);
22 Long height
= RREG_W(LYMAX
);
23 Long width
= RREG_W(LXMAX
)>>3;
26 if (y
< 0 || y
>= height
)
30 *(Byte
*)(lssa
+((width
+1)*y
)+x
) = 0xff;
36 void drawlinevert(int x
)
38 Long lssa
= RREG_L(LSSA
);
39 Long height
= RREG_W(LYMAX
);
40 Long width
= RREG_W(LXMAX
);
43 if (x
< 0 || x
>= width
)
47 *(Byte
*)(lssa
+((width
+1)*y
)+(x
>>3)) |= 1<<(7-(x
&7));
53 void setpixel(int x
, int y
)
55 Long lssa
= RREG_L(LSSA
);
56 Long height
= RREG_W(LYMAX
);
57 Long width
= RREG_W(LXMAX
);
59 if (x
< 0 || x
>= width
|| y
< 0 || y
>= height
)
64 *(Byte
*)(lssa
+((width
+1)*y
)+(x
>>3)) |= 1<<(7-(x
&7));
68 void clearpixel(int x
, int y
)
70 Long lssa
= RREG_L(LSSA
);
71 Long height
= RREG_W(LYMAX
);
72 Long width
= RREG_W(LXMAX
);
74 if (x
< 0 || x
>= width
|| y
< 0 || y
>= height
)
79 *(Byte
*)(lssa
+((width
+1)*y
)+(x
>>3)) &= ~(1<<(7-(x
&7)));
83 void clearscreen(int value
)
85 Long lssa
= RREG_L(LSSA
);
86 Long height
= RREG_W(LYMAX
);
87 Long width
= RREG_W(LXMAX
)>>3;
93 *(Byte
*)(lssa
+((width
+1)*y
)+x
) = value
;
100 void flashscreen(int loop
)
124 void showsuccess(void)
126 Long height
= RREG_W(LXMAX
);