Skip to content

Commit 7ea9974

Browse files
authored
Update README.md
1 parent 9368696 commit 7ea9974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ else:
3232

3333
if you want to keep pixelated look whatever the device screen size is use:
3434
```py
35+
import sys, platform
3536
if sys.platform == "emscripten":
36-
__import__('platform').window.canvas.style.imageRendering = "pixelated"
37+
platform.window.canvas.style.imageRendering = "pixelated"
3738
```
3839

3940
### Windows

0 commit comments

Comments
 (0)