]> git.sesse.net Git - vlc/commitdiff
* skins2/src/ft2_bitmap.cpp: Restored the previous version of this file, as
authorOlivier Teulière <ipkiss@videolan.org>
Sat, 14 May 2005 11:40:55 +0000 (11:40 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Sat, 14 May 2005 11:40:55 +0000 (11:40 +0000)
   the new one breaks text display on win32.
   I hope it won't break x11 skins at the same time :-)

modules/gui/skins2/src/ft2_bitmap.cpp

index c2de698b29b80716d41af663309babc4d856022b..ebd7e5466490c4b240789e64222edb9b2f5b110a 100644 (file)
@@ -60,9 +60,9 @@ void FT2Bitmap::draw( const FT_Bitmap &rBitmap, int left, int top,
         {
             // The buffer in FT_Bitmap contains alpha values
             uint8_t val = *(pBuf++);
-            *(pData++) = (blue * val) >> 8;
-            *(pData++) = (green * val) >> 8;
-            *(pData++) = (red * val) >> 8;
+            *(pData++) = blue;
+            *(pData++) = green;
+            *(pData++) = red;
             *(pData++) = val;
         }
     }