From 9ca2c5a005bc4f309b93d36880c543787e823eab Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Thu, 11 Sep 2003 04:09:53 +0000 Subject: [lcd4linux @ 2003-09-11 04:09:52 by reinelt] minor cleanups --- icon.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'icon.c') diff --git a/icon.c b/icon.c index a43f007..b52fe95 100644 --- a/icon.c +++ b/icon.c @@ -1,4 +1,4 @@ -/* $Id: icon.c,v 1.6 2003/09/10 14:01:53 reinelt Exp $ +/* $Id: icon.c,v 1.7 2003/09/11 04:09:53 reinelt Exp $ * * generic icon and heartbeat handling * @@ -20,6 +20,9 @@ * * * $Log: icon.c,v $ + * Revision 1.7 2003/09/11 04:09:53 reinelt + * minor cleanups + * * Revision 1.6 2003/09/10 14:01:53 reinelt * icons nearly finished\! * @@ -208,5 +211,8 @@ int icon_draw (int num, int seq, int row, int col) int icon_peek (int row, int col) { - return Screen[row*COLS+col]; + if (Screen) + return Screen[row*COLS+col]; + else + return -1; } -- cgit v1.2.3