From b05b7f17f3b0b95d2b04e9579da82e8e89b4ec1f Mon Sep 17 00:00:00 2001 From: Benjamin Lamowski Date: Fri, 15 Nov 2024 11:01:19 +0100 Subject: [PATCH] sculpt_manager: bump editor default quota for large fonts and 4k When trying to open a file in the Files view with font size set to Large on 4k screens, the editor's / `text_area`'s `view` child fails to bump its RAM quota when the editor's default quota is too small. To mitigate the issue, bump the editor's default quota to 80MiB. The long-term fix would be for the editor to request more RAM from the runtime to satisfy the `view` RAM request. Issue #5356 Issue #5383 --- repos/gems/src/app/sculpt_manager/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/gems/src/app/sculpt_manager/main.cc b/repos/gems/src/app/sculpt_manager/main.cc index 6447bb52aa..3d2f0d25b5 100644 --- a/repos/gems/src/app/sculpt_manager/main.cc +++ b/repos/gems/src/app/sculpt_manager/main.cc @@ -1488,7 +1488,7 @@ struct Sculpt::Main : Input_event_handler, Start_name const start_name("editor"); _file_browser_state.text_area.construct(_child_states, start_name, Priority::LEITZENTRALE, - Ram_quota{32*1024*1024}, Cap_quota{350}); + Ram_quota{80*1024*1024}, Cap_quota{350}); } }