void draw_idle_calendar(mwdevice_t *mwdevice)
{
long unsigned int t;
- unsigned int y,y1,m,m1,d,da,i,j,k;
- const char a[12][20]={"January","February","March","April","May","June","July","August","September","October","November","December"};
+ unsigned int y,y1,m,m1,d,i,j,k;
+ /* const char a[12][20]={"January","February","March","April","May","June","July","August","September","October","November","December"}; */
const char dnames[7][3] = { "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So" };
mw_buffer *mwbuf;
unsigned char *bbuf;
{
mw_buffer *mwbuf;
unsigned char *bbuf;
- int len, i;
+ int len;
mwbuf = mw_alloc_pbuffer(80, 16, 1);
mw_buf_clear(mwbuf, MW_BLACK);
if (strncmp(cmdline, "quit", 4) == 0) {
//close(mw_fd);
//exit(0);
+ /* just in case we quit and show another screen */
+ mw_update_display(&mwdata->mwdevice, MW_SCREEN_MODE_IDLE, 0);
g_main_loop_quit (mwdata->mloop);
}
if (strncmp(cmdline, "help", 4) == 0) {