]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/bakapee.c
wwww
[16.git] / src / lib / bakapee.c
index 09125984c8d4a660f2ccdba34edfe251ffb1a950..e553e10c2cc8ce587daae059ea3a19022e064f1b 100755 (executable)
 
 #include "src/lib/bakapee.h"
 
+/* clrstdin() clear any leftover chars tha may be in stdin stream */
+void clrstdin()
+{
+   int ch = 0;
+   while( ( ch = getchar() ) != '\n' && ch != EOF );
+}
+
 //color \82Ä\82·\82Æ
 void colortest(page_t *page, bakapee_t *pee)
 {
@@ -67,9 +74,12 @@ void ssd(page_t *page, bakapee_t *pee, word svq)
 void dingpp(page_t *page, bakapee_t *pee)
 {
 #ifdef TILE
+#ifndef MXLIB
        //fill_block(pee->xx, pee->yy, pee->xx+TILEWH, pee->yy+TILEWH, pee->coor);
-       //mxFillBox(pee->xx, pee->yy, TILEWH, TILEWH, pee->coor, OP_SET);
+       mxFillBox(pee->xx, pee->yy, TILEWH, TILEWH, pee->coor, OP_SET);
+#else
        modexClearRegion(page, pee->xx, pee->yy, TILEWH, TILEWH, pee->coor);
+#endif
 #else
        modexputPixel(page, pee->xx, pee->yy, pee->coor);
 #endif