Explorar el Código

BackColor should always be painted if alpha is used. #180

Martijn Laan hace 10 años
padre
commit
96dd063402
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      Components/BitmapImage.pas

+ 1 - 3
Components/BitmapImage.pas

@@ -7,8 +7,6 @@ unit BitmapImage;
   For conditions of distribution and use, see LICENSE.TXT.
   For conditions of distribution and use, see LICENSE.TXT.
 
 
   A TImage-like component for bitmaps without the TPicture bloat
   A TImage-like component for bitmaps without the TPicture bloat
-
-  $jrsoftware: issrc/Components/BitmapImage.pas,v 1.6 2009/03/23 14:57:40 mlaan Exp $
 }
 }
 
 
 interface
 interface
@@ -272,7 +270,7 @@ begin
       H := Bmp.Height;
       H := Bmp.Height;
     end;
     end;
 
 
-    if (FBackColor <> clNone) and (Bmp.Width < Width) or (Bmp.Height < Height) then begin
+    if (FBackColor <> clNone) and (Is32Bit or (Bmp.Width < Width) or (Bmp.Height < Height)) then begin
       Brush.Style := bsSolid;
       Brush.Style := bsSolid;
       Brush.Color := FBackColor;
       Brush.Color := FBackColor;
       FillRect(R);
       FillRect(R);