diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-09-11 04:09:53 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-09-11 04:09:53 +0000 |
commit | 42eb8ba4829ed60addd82f178e3cc1459634e541 (patch) | |
tree | d17d4de75c046c1d10f0e19e33c0dc35449ee79c /icon.c | |
parent | 35b12c1caeb9e9e3f326511c429f69eaf864ac32 (diff) | |
download | lcd4linux-42eb8ba4829ed60addd82f178e3cc1459634e541.tar.gz |
[lcd4linux @ 2003-09-11 04:09:52 by reinelt]
minor cleanups
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@240 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'icon.c')
-rw-r--r-- | icon.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; } |