diff --git a/frontend-minimal/src/lib.rs b/frontend-minimal/src/lib.rs index 431e9da..2c08275 100644 --- a/frontend-minimal/src/lib.rs +++ b/frontend-minimal/src/lib.rs @@ -2,8 +2,6 @@ use wasm_bindgen::prelude::*; use emu::Megadrive; -// https://rustwasm.github.io/wasm-bindgen/contributing/design/exporting-rust-struct.html - #[wasm_bindgen] pub struct MDEmu(Megadrive); diff --git a/frontend-minimal/static/frontend_minimal.js b/frontend-minimal/static/frontend_minimal.js index 6a61007..5364214 100644 --- a/frontend-minimal/static/frontend_minimal.js +++ b/frontend-minimal/static/frontend_minimal.js @@ -1,5 +1,3 @@ -import * as __wbg_star0 from 'env'; - let wasm; const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); @@ -104,7 +102,6 @@ function getImports() { imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; - imports['env'] = __wbg_star0; return imports; } diff --git a/frontend-minimal/static/frontend_minimal_bg.wasm b/frontend-minimal/static/frontend_minimal_bg.wasm index 576c6f4..881f720 100644 Binary files a/frontend-minimal/static/frontend_minimal_bg.wasm and b/frontend-minimal/static/frontend_minimal_bg.wasm differ diff --git a/frontend-minimal/static/index.html b/frontend-minimal/static/index.html index 67d48aa..060f0fb 100644 --- a/frontend-minimal/static/index.html +++ b/frontend-minimal/static/index.html @@ -16,12 +16,10 @@ width: 100%; max-height: 90vh; box-shadow: 2px 2px 5px black; - /* - image-rendering: -moz-crisp-edges; - image-rendering: -webkit-crisp-edges; - image-rendering: pixelated; - image-rendering: crisp-edges; - */ + image-rendering: -moz-crisp-edges; + image-rendering: -webkit-crisp-edges; + image-rendering: pixelated; + image-rendering: crisp-edges; } main { width: 800px; @@ -53,7 +51,7 @@