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

Two issues (Fullscreen/Mouse focus, Changing size of canvas) #35

Closed
Rogerjwilkinson opened this issue Mar 3, 2018 · 2 comments
Closed
Labels

Comments

@Rogerjwilkinson
Copy link

Hi! First off thanks for the awesome and easy to use API.

Just got these two issues I was hoping you knew some tricks for ^^

  1. Going into fullscreen seems to lock the mouse into the top left corner of the screen, and disables it. Using the default plunkr example, as well as tried
document.getElementById("fullscreen_btn").addEventListener("click", function() {
    dosbox.requestFullScreen();

to no luck.

  1. The css seems to get ignored for resizing canvas. It works for the loading, but then game always resizes to 640x400 once everything downloaded.

Thanks for any ideas!

@x-wolverine-x
Copy link

Cavas resize working without any problems for me.

@caiiiycuk
Copy link
Owner

Fixed in 6.22.37, just use method fullscreen from command interface.
http://js-dos.com/#js-dos-622-faq-fullscreen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants