Skip to contentSkip to conversation

softcursor fix for PM

PATCH New Benjamin Herrenschmidt 1 participant 1 message Feb 10, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 softcursor fix for PM

drivers/video/softcursor.c +4 -1
diff -urN fbdev-2.5/drivers/video/softcursor.c linuxppc-2.5-benh/drivers/video/softcursor.c
@@ -62,7 +62,10 @@
 
 	if (cursor->set & FB_CUR_SETSHAPE)
 		fb_load_cursor_image(info);
-		
+
+	if (info->state != FBINFO_STATE_RUNNING)
+		return 0;
+
 	if (!cursor->enable || (info->cursor.enable && (cursor->set & FB_CUR_SETPOS))) {
 		if (needsync && info->fbops->fb_sync) {
 			info->fbops->fb_sync(info);

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn