Small fix for the form background drawing disabling

git-svn-id: trunk@36703 -
This commit is contained in:
sekelsenmat 2012-04-10 09:41:58 +00:00
parent b3d9e6e4a0
commit 80721245e5

View File

@ -586,7 +586,7 @@ begin
// Consider also if the user wants to manually disable the background drawing
lDrawControl := True;
if Assigned(CDWidgetset.DisableFormBackgroundDrawingProc) then
lDrawControl := CDWidgetset.DisableFormBackgroundDrawingProc(AForm);
lDrawControl := not CDWidgetset.DisableFormBackgroundDrawingProc(AForm);
if lDrawControl then
lDrawControl := lWindowHandle.IsControlBackgroundVisible() or (AForm.Height < AImage.Height);
if lDrawControl then