Read about our upcoming Code of Conduct on this issue

Commit 683ffbe2 authored by a1ex's avatar a1ex
Browse files

ExpSim indicator

--HG--
branch : 550d
parent f51bde639700
......@@ -251,6 +251,8 @@ update_lens_display(
mod(ABS(AE_VALUE) * 10 / 8, 10)
);
#if 0
y += height;
bmp_printf( font, x, y,
......
......@@ -2575,10 +2575,28 @@ void display_shooting_info() // called from debug task
display_trap_focus_info();
}
void display_expsim_status()
{
static int prev_expsim = 0;
if (!expsim)
{
int x = 610 + 2 * font_med.width;
int y = 400;
bmp_printf( FONT(FONT_MED, COLOR_WHITE, 0), x, y, "ExpSim" );
draw_line(x-5, y + font_med.height * 3/4, x + font_med.width * 6, y + font_med.height * 1/4, COLOR_WHITE);
}
else
{
if (expsim != prev_expsim) redraw_nosem(); // this function is inside a BMP_SEM
}
prev_expsim = expsim;
}
void display_shooting_info_lv()
{
display_lcd_remote_icon(480, 0);
display_trap_focus_info();
display_expsim_status();
}
void display_trap_focus_info()
......
......@@ -3083,6 +3083,14 @@ void redraw()
)
}
void redraw_nosem() // to be called from a BMP_SEM only!
{
if (!is_safe_to_mess_with_the_display(0)) return;
RedrawDisplay();
crop_set_dirty(20);
afframe_set_dirty();
}
/*
static void
redraw_task( void )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment