Skip to contentSkip to conversation

fbdev: Check if cursor image has changed in intelfb

PATCH New Antonino A. Daplas 1 participant 1 message Oct 29, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 14/15 fbdev: Check if cursor image has changed in intelfb

Check if cursor image has changed in intelfb

---
 intelfbdrv.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/video/intelfb/intelfbdrv.c +1 -1
diff -Nru a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
@@ -1573,7 +1573,7 @@
 		intelfbhw_cursor_setcolor(dinfo, bg, fg);
 	}
 
-	if (cursor->set & FB_CUR_SETSHAPE) {
+	if (cursor->set & (FB_CUR_SETSHAPE & FB_CUR_SETIMAGE)) {
 		u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8);
 		u32 size = s_pitch * cursor->image.height;
 		u8 *dat = (u8 *) cursor->image.data;

-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/