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

Resizing window on menu screen causes tiles to spawn on top of each other #9

Open
Devnol opened this issue Dec 24, 2021 · 10 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Devnol
Copy link
Collaborator

Devnol commented Dec 24, 2021

Proposed solution:
clear screen or tiles on resize?

@Devnol Devnol added the bug Something isn't working label Dec 24, 2021
@Devnol Devnol self-assigned this Dec 24, 2021
@pistasjis
Copy link
Collaborator

pistasjis commented Dec 24, 2021

image
Can reproduce, dragging the window also does it

@Midou36O
Copy link

minimising the window does it too
image

@Peter0x44
Copy link
Owner

This only happens on windows, as the main loop is blocked while dragging the window
Currently, they move based on frame time. One solution could be moving them based on GetTime() instead of GetFrameTime()

@Midou36O
Copy link

This only happens on windows

The screenshot i made is taken from linux

@Devnol
Copy link
Collaborator Author

Devnol commented Dec 24, 2021 via email

@Peter0x44
Copy link
Owner

weird, I can only reproduce this on windows while dragging or resizing. I know why this occurs though.

@pistasjis
Copy link
Collaborator

pistasjis commented Dec 24, 2021 via email

Peter0x44 added a commit that referenced this issue Dec 25, 2021
@Peter0x44
Copy link
Owner

Just pushed an attempted fix. Please test.

@Peter0x44
Copy link
Owner

Reverted, it didn't work.

@Peter0x44
Copy link
Owner

Peter0x44 commented Dec 25, 2021

clear screen or tiles on resize?

This is starting to look more attractive, as it is totally trivial to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants