#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)
{
}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
break;
case 8:
colorz(page, pee);
- modexprint(page, page->sw/2, page->sh/2, 1, 47, 0, "bakapi");
+ modexprint(page, page->sw/2, page->sh/2, 1, 47, 0, "bakapi", 1);
break;
case 9:
if(pee->coor <= HGQ)