Skip to content

Conversation

@JetSetIlly
Copy link
Contributor

The effect is particularly visible in the drawing of tables during window resizing

beforeRender() now called from sizeChange() in MasterWindow.go. this is because beforeRender() is never called when resizing a GLFW window

context.CleanSlate() moved from afterRender() to beginning of render() function. this is because afterRender(), like beforeRender() is never called when resizing

it would be ineffective to call CleanSlate() from the sizeChange() function. calling CleanSlate() at the beginning of the render() has the same affect as calling it from afterRender() in all situations.

this is because beforeRender() is never called when resizing a GLFW
window

context.CleanSlate() moved from afterRender() to beginning of render()
function. this is because afterRender(), like beforeRender() is never
called when resizing

it would be ineffective to call CleanSlate() from the sizeChange()
function
@JetSetIlly
Copy link
Contributor Author

JetSetIlly commented Jul 31, 2024

Demonstration videos the problem using the hugelist example

Without fix:

video-2024-07-31_16.11.32.mp4

With fix:

video-2024-07-31_16.13.55.mp4

@AllenDang AllenDang merged commit ba3450b into AllenDang:master Aug 1, 2024
@AllenDang
Copy link
Owner

@JetSetIlly Thanks very much! Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants