-
Notifications
You must be signed in to change notification settings - Fork 2
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
Box menu drawn in wrong spot when scroll position isn't 0 #97
Comments
I took a good serious look at this, and the fixes for it. I might commit a partial fix for 3.4.21, but I might also take this as an opportunity to really fix up how it should work. This is one of a small handful of things which use this older model of completely taking over the repaint look when the mouse button is down, meaning it just keeps drawing the menu on top of the existing canvas, without the primary repaint routines being called. The only reason this works is that both the front and back buffer contain the last redrawn screen, and this is drawing on top of them, swapping the buffers as you'd expect in GL, but it never actually issues an openGL clear screen. I'd like to take this opportunity to update this draw style, so that the internal canvas data structure has a bit that keeps track of if the mouse is in a semi persistent state and keep drawing and tracking the menus from that. This will eventually also apply to the hover over icons on box corners (which often get intermittently drawn as well) and other things. This would clean up a great deal finishing us being ready for multiple GL routines and webGL. |
This is fixed in 05ef8f7 , with a first batch of refactoring. There are a few dangling things (that don't impact this fix) to get refactored even a bit more for future repainting in GLFW. Will be included in 3.4.21 |
Verified on 3.4.21 and closing. |
Repro steps
I reproed this on Boxer
3.4.19 2024-06-24
list
box in viewlist
box's menu by right-clicking on its top-right cornerUnexpected result: The menu is drawn at the wrong Y coordinate. Screenshot:
Potentially related issues
freeze
drawn in wrong spot when scroll position isn't 0 #100The text was updated successfully, but these errors were encountered: