mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 02:58:16 +02:00
LCL: TCustomBitmap.SetMonochrome contained unreachable code. Issue #21599, patch from u-boot.
git-svn-id: trunk@46201 -
This commit is contained in:
parent
3985d2f0cb
commit
d8ef520c3e
@ -291,8 +291,6 @@ end;
|
|||||||
procedure TCustomBitmap.SetMonochrome(AValue: Boolean);
|
procedure TCustomBitmap.SetMonochrome(AValue: Boolean);
|
||||||
begin
|
begin
|
||||||
if Monochrome = AValue then exit;
|
if Monochrome = AValue then exit;
|
||||||
if not AValue then Exit;
|
|
||||||
|
|
||||||
if AValue
|
if AValue
|
||||||
then PixelFormat := pf1bit
|
then PixelFormat := pf1bit
|
||||||
else PixelFormat := pfDevice;
|
else PixelFormat := pfDevice;
|
||||||
|
Loading…
Reference in New Issue
Block a user