force oled with --mobile flag

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-08-04 12:06:58 -07:00
parent 3451206f1a
commit f6c44bba8a
2 changed files with 3 additions and 4 deletions

View File

@@ -13,8 +13,7 @@ pub fn setup_egui_context(
zoom_factor: f32, zoom_factor: f32,
) { ) {
let is_mobile = options.contains(NotedeckOptions::Mobile) || crate::ui::is_compiled_as_mobile(); let is_mobile = options.contains(NotedeckOptions::Mobile) || crate::ui::is_compiled_as_mobile();
let is_oled = crate::ui::is_oled(is_mobile);
let is_oled = crate::ui::is_oled();
ctx.options_mut(|o| { ctx.options_mut(|o| {
tracing::info!("Loaded theme {:?} from disk", theme); tracing::info!("Loaded theme {:?} from disk", theme);

View File

@@ -16,8 +16,8 @@ pub fn is_narrow(ctx: &egui::Context) -> bool {
screen_size.x < NARROW_SCREEN_WIDTH screen_size.x < NARROW_SCREEN_WIDTH
} }
pub fn is_oled() -> bool { pub fn is_oled(is_mobile_override: bool) -> bool {
is_compiled_as_mobile() is_mobile_override || is_compiled_as_mobile()
} }
#[inline] #[inline]