public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pvr2fb: test var->xoffset as bool?
@ 2009-01-18 19:46 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-01-18 19:46 UTC (permalink / raw)
  To: linux-sh

was this what was intended?
------------8<------------->8------------
Test for negative xoffset

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/video/pvr2fb.c b/drivers/video/pvr2fb.c
index 0a0fd48..5869e6c 100644
--- a/drivers/video/pvr2fb.c
+++ b/drivers/video/pvr2fb.c
@@ -460,7 +460,7 @@ static int pvr2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
 	set_color_bitfields(var);
 
 	if (var->vmode & FB_VMODE_YWRAP) {
-		if (var->xoffset || var->yoffset < 0 ||
+		if (var->xoffset < 0 || var->yoffset < 0 ||
 		    var->yoffset >= var->yres_virtual) {
 			var->xoffset = var->yoffset = 0;
 		} else {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-18 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-18 19:46 [PATCH] pvr2fb: test var->xoffset as bool? Roel Kluin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox