fix checks in *_num() functions: only when/where necessary

This commit is contained in:
marschap committed 2006-04-11 20:57:15 +00:00
1 parent 66e38659cb
commit 65a473f2b7
12 files changed
+34 -27

No files matched your search

+1 -1
View File
@@ -938,7 +938,7 @@ HD44780_num (Driver *drvthis, int x, int num)
if ((num < 0) || (num > 10))
return;
if ((p->width >= 20) && (p->height >= 4)) {
if (p->height >= 4) {
int y = (p->height - 2) / 2;
int x2, y2;