mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Optimize DrawPreviewDrawCell procedure in Viewer
This commit is contained in:
parent
4c3c2fe329
commit
cb144c7b0c
1 changed files with 1 additions and 0 deletions
|
|
@ -1211,6 +1211,7 @@ begin
|
|||
begin
|
||||
sName:= ExtractOnlyFileName(FileList.Strings[i]);
|
||||
sExt:= ExtractFileExt(FileList.Strings[i]);
|
||||
DrawPreview.Canvas.FillRect(aRect); // Clear cell
|
||||
lstPreviewImg.Draw(DrawPreview.Canvas, aRect.Left+z+4, aRect.Top+5, i, True);
|
||||
if DrawPreview.Canvas.GetTextWidth(sName+sExt) < DrawPreview.DefaultColWidth then
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue