From 75448afd7826a0541468ed630726f8c88c20f5a6 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Wed, 31 Aug 2011 21:34:05 -0400 Subject: [PATCH] lib: fixed BMP alpha channel... was creating transparent BMP files --- src/bmp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bmp.cc b/src/bmp.cc index 6ecb5977..ef564c29 100644 --- a/src/bmp.cc +++ b/src/bmp.cc @@ -112,7 +112,7 @@ BXEXPORT void ScreenshotToRGB(const JLScreenInfo &info, // ^^^^^^ : Red (between 0x00 and 0x1F) if( bytes_per_pixel == 4 ) - write[3] = 0x00; // alpha + write[3] = 0xFF; // alpha write[2] = (((value >> 11) & 0x1F) * 0xFF) / 0x1F; // red write[1] = (((value >> 5) & 0x3F) * 0xFF) / 0x3F; // green -- 2.11.4.GIT