Skip to contentSkip to conversation

pm2fb: Reset transparency settings

PATCH In review Antonino A. Daplas 1 participant 1 message May 5, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 3/20 pm2fb: Reset transparency settings

From: Krzysztof Helt < [email protected]>

This patch resets transparency settings when depth changes. Otherwise the 16 and 24-bit modes work incorrectly after switching from 32-bit mode.

---

 drivers/video/pm2fb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/pm2fb.c +2 -0
index 2a8ba60..33f17a9 100644
@@ -645,6 +645,8 @@ static int pm2fb_check_var(struct fb_var
 		return -EINVAL;
 	}
 
+	var->transp.offset = 0;
+	var->transp.length = 0;
 	switch(var->bits_per_pixel) {
 	case 8:
 		var->red.length = var->green.length = var->blue.length = 8;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/