You've already forked lazarus-ccr
spktoolbar: Fix compilation for Laz trunk before r57304.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6204 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -702,12 +702,20 @@ begin
|
||||
end;
|
||||
|
||||
procedure TSpkToolbar.Loaded;
|
||||
{$IF LCL_FULLVERSION = 1090000}
|
||||
const
|
||||
SM_REMOTESESSION = $1000;
|
||||
// is defined only after Lazarus r57304
|
||||
{$ENDIF}
|
||||
begin
|
||||
inherited;
|
||||
|
||||
{$IF LCL_FULLVERSION >= 1090000}
|
||||
// Needed due to changes of doublebuffering in Laz r57267
|
||||
// force DoubleBuffered if not used in remote session
|
||||
if not (csDesigning in ComponentState) then
|
||||
DoubleBuffered := DoubleBuffered or (GetSystemMetrics(SM_REMOTESESSION)=0);
|
||||
// force DoubleBuffered if not used in remote session
|
||||
{$ENDIF}
|
||||
|
||||
InternalBeginUpdate;
|
||||
|
||||
|
Reference in New Issue
Block a user