Skip to content

Commit

Permalink
[Emscripten] Calculate DPI using window.devixePixelRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
chnoblouch committed Jun 27, 2024
1 parent 852659a commit abea5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/source/platforms/emscripten/AppEmscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static void onLoadingCoreAssets()
AppDemo::scene,
canvasWidth,
canvasHeight,
142,
(int)(142.0 * EM_ASM_DOUBLE(return window.devicePixelRatio)),
App::config.startSceneID,
reinterpret_cast<void*>(onPaint),
nullptr,
Expand Down

0 comments on commit abea5fb

Please sign in to comment.