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

Jumpy window when programmatically resizing. [Linux] #2

Open
Fordi opened this issue May 5, 2019 · 1 comment
Open

Jumpy window when programmatically resizing. [Linux] #2

Fordi opened this issue May 5, 2019 · 1 comment

Comments

@Fordi
Copy link
Contributor

Fordi commented May 5, 2019

Sample code demonstrating break:

require('native-canvas');
canvas.width = 800;
canvas.height = 450;

When running that code, the window jitters between the default size (640x480) and the requested size (800x450). I've tried a number of combinations against exposed properties (e.g., window.size = { w: 800, h: 450 }, etc). Nothing appears to work. Some things do nothing, others jitter madly. I don't really know enough about SDL to dig in here, else, this'd be a pull request.

For context, I'm on Linux Mint 19 Cinnamon (like Ubuntu). This doesn't happen in OS-X, and I don't have a windows machine to test with, so I don't know if the issue exists there. It also happens in Raspbian (see PR #3 to test if you've got a Pi).

@Fordi Fordi changed the title Jumpy window when programmatically resizing. Jumpy window when programmatically resizing. [Linux] May 5, 2019
@mcchatman8009
Copy link
Owner

@Fordi Good find, I wonder if that is due to hardware acceleration option that is enabled. I'll try to look into this to see if I can reproduce this behavior.

Thanks,

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

No branches or pull requests

2 participants