summaryrefslogtreecommitdiff
path: root/sys/arch/pmax/dev
diff options
context:
space:
mode:
authorThomas Graichen <graichen@cvs.openbsd.org>1997-05-21 13:09:13 +0000
committerThomas Graichen <graichen@cvs.openbsd.org>1997-05-21 13:09:13 +0000
commit936115aa47d5318b18a0c90152f04424df526502 (patch)
tree47c570e191a15d77d4faeecc3a3c703f962b3778 /sys/arch/pmax/dev
parentcc4d1f79b69be3ff58ef6271c6a84f6ede2741d7 (diff)
fix problem with screensize under x on 5000/25 (originally from NetBSD
diff submitted by Jan Mueller <jan.mueller@tu-harburg.d400.de>)
Diffstat (limited to 'sys/arch/pmax/dev')
-rw-r--r--sys/arch/pmax/dev/ims332.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/pmax/dev/ims332.c b/sys/arch/pmax/dev/ims332.c
index 66a144fead9..7506a375778 100644
--- a/sys/arch/pmax/dev/ims332.c
+++ b/sys/arch/pmax/dev/ims332.c
@@ -298,14 +298,14 @@ ims332PosCursor(fi, x, y)
struct fbinfo *fi;
int x, y;
{
- if (y < 0)
- y = 0;
- else if (y > fi -> fi_type.fb_width - fi -> fi_cursor.width - 1)
- y = fi -> fi_type.fb_width - fi -> fi_cursor.width - 1;
if (x < 0)
x = 0;
- else if (x > fi -> fi_type.fb_height - fi -> fi_cursor.height - 1)
- x = fi -> fi_type.fb_height - fi -> fi_cursor.height - 1;
+ else if (x > fi -> fi_type.fb_width - fi -> fi_cursor.width - 1)
+ x = fi -> fi_type.fb_width - fi -> fi_cursor.width - 1;
+ if (y < 0)
+ y = 0;
+ else if (y > fi -> fi_type.fb_height - fi -> fi_cursor.height - 1)
+ y = fi -> fi_type.fb_height - fi -> fi_cursor.height - 1;
fi -> fi_cursor.x = x;
fi -> fi_cursor.y = y;