X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbakapee.c;h=e553e10c2cc8ce587daae059ea3a19022e064f1b;hb=03ca86f3098c71ab03a9b4fd45959d109158c6b1;hp=1e94aea03d84e264759d63ac963602d3f9815893;hpb=18306661fed9fc7474047d15cae6422292b1878d;p=16.git diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index 1e94aea0..e553e10c 100755 --- a/src/lib/bakapee.c +++ b/src/lib/bakapee.c @@ -22,6 +22,13 @@ #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 ‚Ä‚·‚Æ void colortest(page_t *page, bakapee_t *pee) { @@ -67,8 +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); +#else modexClearRegion(page, pee->xx, pee->yy, TILEWH, TILEWH, pee->coor); +#endif #else modexputPixel(page, pee->xx, pee->yy, pee->coor); #endif