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

Add support for resizing Emscripten canvas #1840

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

skylersaleh
Copy link
Contributor

Hi,

I was trying to use raylib in an application where I wanted the canvas to be able to be dynamically resized (so that it could cover the entire web page), and I noticed that the support for this was only partially implemented in raylib (and commented out).

So, I went and finished the rest of it and got it working. I hope this is helpful.

Thanks, for making a great library.

@skylersaleh
Copy link
Contributor Author

You can see an app with this PR applied at the following address:

https://skylersaleh.github.io/SkyBoy/

@raysan5 raysan5 merged commit 9095dd9 into raysan5:master Jun 22, 2021
@raysan5
Copy link
Owner

raysan5 commented Jun 22, 2021

@skylersaleh Wow! Amazing! I love that GameBoy emulator! Great work!

I'm merging it for now, the implementation looks nice. I need to see how it works with my tools, at this moment I was managing the canvas resizing from html size because every tool had some specific needs.

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