Treat width/height px units as dp in HTML environments for better scaling.

This commit is contained in:
Martín Lucas Golini
2026-04-04 00:53:07 -03:00
parent 385a07a385
commit 56c8bdcc5b
9 changed files with 43 additions and 13 deletions

View File

@@ -105,7 +105,7 @@ UTEST( UICodeEditor, DocumentViewStressTest ) {
UIApplication app(
WindowSettings( 800, 600, "eepp - Stress Test", WindowStyle::Default,
WindowBackend::Default, 32 ),
UIApplication::Settings( Sys::getProcessPath() + ".." + FileSystem::getOSSlash() ) );
UIApplication::Settings( Sys::getProcessPath() + ".." + FileSystem::getOSSlash(), 1 ) );
auto* editor = UICodeEditor::New();
editor->setParent( (Node*)app.getUI() );