X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbakapee.c;h=e553e10c2cc8ce587daae059ea3a19022e064f1b;hb=03ca86f3098c71ab03a9b4fd45959d109158c6b1;hp=040db6f9f9782c91c350df182eef02affaf7ddb1;hpb=b85e69ad19bcc1ef45494d60b2ffd47fc2eeb4a3;p=16.git diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index 040db6f9..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) { @@ -63,11 +70,16 @@ void ssd(page_t *page, bakapee_t *pee, word svq) }else pee->sy = 0; } -//plot pixel +//plot pixel or plot tile 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