-/* $Id: XWindow.c,v 1.35 2003/10/05 17:58:50 reinelt Exp $
+/* $Id: XWindow.c,v 1.36 2003/10/22 04:32:25 reinelt Exp $
*
* X11 Driver for LCD4Linux
*
*
*
* $Log: XWindow.c,v $
+ * Revision 1.36 2003/10/22 04:32:25 reinelt
+ * fixed icon bug found by Rob van Nieuwkerk
+ *
* Revision 1.35 2003/10/05 17:58:50 reinelt
* libtool junk; copyright messages cleaned up
*
int xlcdclear(int full)
{
- return pix_clear();
+ icon_clear();
+ pix_clear();
+ return 0;
}
-/* $Id: icon.c,v 1.10 2003/10/22 04:19:16 reinelt Exp $
+/* $Id: icon.c,v 1.11 2003/10/22 04:32:25 reinelt Exp $
*
* generic icon and heartbeat handling
*
*
*
* $Log: icon.c,v $
+ * Revision 1.11 2003/10/22 04:32:25 reinelt
+ * fixed icon bug found by Rob van Nieuwkerk
+ *
* Revision 1.10 2003/10/22 04:19:16 reinelt
* Makefile.in for imon.c/.h, some MatrixOrbital clients
*
for (n=0; n<icons; n++) {
Bitmap[n].nData=1;
- Bitmap[n].lData=0;
+ Bitmap[n].lData=-1;
Bitmap[n].Data=malloc(YRES*sizeof(char));
memset (Bitmap[n].Data, 0, YRES*sizeof(char));
icon_read_bitmap(n);
{
int n;
+ // reset screen buffer
for (n=0; n<ROWS*COLS; n++) {
Screen[n]=-1;
}
+ // reset last bitmap pointer
+ for (n=0; n<ICONS; n++) {
+ Bitmap[n].lData=-1;
+ }
+
}