Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas not updated on macos #1

Open
krystophny opened this issue Feb 18, 2019 · 2 comments
Open

Canvas not updated on macos #1

krystophny opened this issue Feb 18, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@krystophny
Copy link
Owner

After drawing objects on macos, the canvas is not updated. The next update happens at a paint event triggered by resizing the window or accessing the menu. The issue seems to be related to TViewport.CopyBackBufferRectOnCanvas and that fOnPaint is not assigned there.

tpx/ViewPort.pas

Line 1007 in acba881

if Assigned(fOnPaint) and GenEvent and (not fDisablePaintEvent)

@krystophny krystophny added the bug Something isn't working label Feb 18, 2019
@krystophny krystophny self-assigned this Feb 18, 2019
@krystophny
Copy link
Owner Author

krystophny commented Feb 18, 2019

The problem seems to be more general and appears also when redrawing the cursor crosshair. https://forum.lazarus.freepascal.org/index.php?topic=38041.0 and http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface could be related.

  • The issue appears on both, Carbon and Cocoa UI.
  • fOnBeginRedraw is not assigned in TViewport.UpdateViewport

@krystophny
Copy link
Owner Author

Live redrawing while painting still doesn't work on macos, but now the system is usable.

@krystophny krystophny reopened this Jul 8, 2019
@krystophny krystophny added enhancement New feature or request and removed bug Something isn't working labels Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant