mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 14:19:32 +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);
|
||||
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;
|
||||
{$ENDIF}
|
||||
//OpenGLControl1Paint(Self);
|
||||
Done:=false; // tell lcl to handle messages and return immediatly
|
||||
end;
|
||||
|
||||
|
||||
@ -47,10 +47,5 @@
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<Parsing>
|
||||
<SyntaxOptions>
|
||||
<UseAnsiStrings Value="False"/>
|
||||
</SyntaxOptions>
|
||||
</Parsing>
|
||||
</CompilerOptions>
|
||||
</CONFIG>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user