mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 05:09:05 +02:00
example: openglcontrol: workaround for qt
git-svn-id: trunk@46935 -
This commit is contained in:
parent
3b1a1df787
commit
800f8578fa
@ -402,8 +402,14 @@ 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;
|
||||||
//OpenGLControl1Paint(Self);
|
{$ENDIF}
|
||||||
Done:=false; // tell lcl to handle messages and return immediatly
|
Done:=false; // tell lcl to handle messages and return immediatly
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user