Skip to content

Commit 98c8256

Browse files
committed
removed "incoming module API"
- as requested by @sbc100 - if somebody asks for a way to disable the feature we can add a C API at a later time
1 parent 8a1b7ce commit 98c8256

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/library_glfw.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,10 +1324,9 @@ var LibraryGLFW = {
13241324
/**
13251325
* CSS Scaling is a feature that is NOT part of the GLFW API, but for historical reasons, it is available
13261326
* in Emscripten.
1327-
* It is enabled by default but can be disabled by setting Module['EMSCRIPTEN_GLFW_DISABLE_CSS_SCALING'] to true.
13281327
* It is automatically disabled when using Hi DPI (the library overrides CSS sizes). */
13291328
isCSSScalingEnabled() {
1330-
return Module['EMSCRIPTEN_GLFW_DISABLE_CSS_SCALING'] !== true && !GLFW.isHiDPIAware();
1329+
return !GLFW.isHiDPIAware();
13311330
},
13321331

13331332
adjustCanvasDimensions() {

0 commit comments

Comments
 (0)