Merge pull request #17 from shanselman/master

high-dpi support
This commit is contained in:
Felix Rieseberg 2018-08-23 15:56:00 -07:00 committed by GitHub
commit 9c1ba25119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View file

@ -1,6 +1,17 @@
# Windows95
# windows95
This is Windows 95, running in an Electron app. Yes, it's the full thing. I'm sorry.
This is Windows 95, running in an Electron app. Yes, it's the full thing. I'm sorry. [Download it here](https://github.com/felixrieseberg/windows95/releases).
![Screenshot](https://user-images.githubusercontent.com/1426799/44532591-4ceb3680-a6a8-11e8-8c2c-bc29f3bfdef7.png)
## Does it work?
Yes! Quite well, actually.
## Should this have been a native app?
Absolutely.
## How's the code?
This only works well by accident and was mostly a joke. The code quality is accordingly.
## Credits

View file

@ -35,6 +35,10 @@ async function main (id) {
// New v86 instance
window.emulator = new V86Starter(opts)
//high-dpi support
var scale = window.devicePixelRatio;
window.emulator.screen_adapter.set_scale(scale,scale);
// Restore state. We can't do this right away.
setTimeout(async () => {