IDE: editor completion dropdown - fix painting. Some chars where "chopped off". Proportional fonts can overlap into the next cell, therefore when continuing to paint, the next token must not clear the background.

This commit is contained in:
Martin 2023-06-02 11:08:58 +02:00
parent 1cc6cfaaf2
commit 60c4e28fd7

View File

@ -38,7 +38,7 @@ interface
uses
Classes, SysUtils, RegExpr,
// LCL
LCLType, Graphics, Controls,
LCLType, Graphics, Controls, LCLIntf,
// LazUtils
LazFileUtils, LazStringUtils,
// SynEdit
@ -303,6 +303,7 @@ var
HintModifier: TPascalHintModifier;
HelperForNode: TCodeTreeNode;
begin
SetBkMode(ACanvas.Handle, TRANSPARENT);
if Colors<>nil then
begin
if ItemSelected then