mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-09 10:29:28 +01:00
examples: openglcontrol: clean up
git-svn-id: trunk@46941 -
This commit is contained in:
parent
285ae1d692
commit
60489e5cc0
@ -402,14 +402,8 @@ end;
|
|||||||
|
|
||||||
procedure TExampleForm.IdleFunc(Sender: TObject; var Done: Boolean);
|
procedure TExampleForm.IdleFunc(Sender: TObject; var Done: Boolean);
|
||||||
begin
|
begin
|
||||||
{$IFDEF LCLQT}
|
|
||||||
// the QT backend currently uses a hack, which does not work together with the
|
|
||||||
// QT painting mechanism. You have to "paint" outside the paint message:
|
|
||||||
{$NOTE Remove this when the TOpenGLControl backend for QT uses the QT way of using OpenGL}
|
|
||||||
OpenGLControl1Paint(Self);
|
|
||||||
{$ELSE}
|
|
||||||
OpenGLControl1.Invalidate;
|
OpenGLControl1.Invalidate;
|
||||||
{$ENDIF}
|
//OpenGLControl1Paint(Self);
|
||||||
Done:=false; // tell lcl to handle messages and return immediatly
|
Done:=false; // tell lcl to handle messages and return immediatly
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -47,10 +47,5 @@
|
|||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="11"/>
|
<Version Value="11"/>
|
||||||
<Parsing>
|
|
||||||
<SyntaxOptions>
|
|
||||||
<UseAnsiStrings Value="False"/>
|
|
||||||
</SyntaxOptions>
|
|
||||||
</Parsing>
|
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</CONFIG>
|
</CONFIG>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user