From 936115aa47d5318b18a0c90152f04424df526502 Mon Sep 17 00:00:00 2001 From: Thomas Graichen Date: Wed, 21 May 1997 13:09:13 +0000 Subject: fix problem with screensize under x on 5000/25 (originally from NetBSD diff submitted by Jan Mueller ) --- sys/arch/pmax/dev/ims332.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/arch') 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; -- cgit v1.2.3