You've already forked lazarus-ccr
* Gtk - Draw dotted line using a bitmap brush like win32
* Workaround to LCL bug 8823 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@163 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -4764,6 +4764,7 @@ begin
|
|||||||
else
|
else
|
||||||
Images.Handle := LoadBitmap(FindClassHInstance(TBaseVirtualTree), PChar(ImageName));
|
Images.Handle := LoadBitmap(FindClassHInstance(TBaseVirtualTree), PChar(ImageName));
|
||||||
}
|
}
|
||||||
|
Images.TransparentColor := clNone;
|
||||||
Images.LoadFromLazarusResource(ImageName);
|
Images.LoadFromLazarusResource(ImageName);
|
||||||
Logger.SendBitmap([lcCheck],ImageName,Images);
|
Logger.SendBitmap([lcCheck],ImageName,Images);
|
||||||
try
|
try
|
||||||
@ -13702,8 +13703,7 @@ begin
|
|||||||
|
|
||||||
if NeedLines then
|
if NeedLines then
|
||||||
begin
|
begin
|
||||||
//Workaround till LCL gets fixed
|
//WARNING: It requires a patched LCL
|
||||||
{$ifdef Windows}
|
|
||||||
if FDottedBrush <> 0 then
|
if FDottedBrush <> 0 then
|
||||||
DeleteObject(FDottedBrush);
|
DeleteObject(FDottedBrush);
|
||||||
|
|
||||||
@ -13719,9 +13719,6 @@ begin
|
|||||||
PatternBitmap := CreateBitmap(8, 8, 1, 1, Bits);
|
PatternBitmap := CreateBitmap(8, 8, 1, 1, Bits);
|
||||||
FDottedBrush := CreatePatternBrush(PatternBitmap);
|
FDottedBrush := CreatePatternBrush(PatternBitmap);
|
||||||
DeleteObject(PatternBitmap);
|
DeleteObject(PatternBitmap);
|
||||||
{$else}
|
|
||||||
FDottedBrush := CreatePatternBrush(0);
|
|
||||||
{$endif}
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
<PublishOptions>
|
<PublishOptions>
|
||||||
<Version Value="2"/>
|
<Version Value="2"/>
|
||||||
<IgnoreBinaries Value="False"/>
|
|
||||||
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||||
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
|
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
|
||||||
</PublishOptions>
|
</PublishOptions>
|
||||||
|
@ -64,6 +64,9 @@
|
|||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="5"/>
|
<Version Value="5"/>
|
||||||
|
<SearchPaths>
|
||||||
|
<LCLWidgetType Value="gtk"/>
|
||||||
|
</SearchPaths>
|
||||||
<CodeGeneration>
|
<CodeGeneration>
|
||||||
<Generate Value="Faster"/>
|
<Generate Value="Faster"/>
|
||||||
</CodeGeneration>
|
</CodeGeneration>
|
||||||
|
Reference in New Issue
Block a user