X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbakapee.c;h=e553e10c2cc8ce587daae059ea3a19022e064f1b;hb=8c185ad263ff4fadf19797ae157d0fcedcab2db3;hp=09125984c8d4a660f2ccdba34edfe251ffb1a950;hpb=ae047ad3be09d38573b5cab895472e31ef7d47c7;p=16.git diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index 09125984..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,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