Read about our upcoming Code of Conduct on this issue

Commit 8df318e1 authored by Daniel Fort's avatar Daniel Fort
Browse files

modify silent.c to work with commit f404e5fcef8f

Raw backend: allow displaying raw previews without conflicting with LiveView info bars

--HG--
branch : unified_silent_module_fix
parent 0752dd8e7182
......@@ -565,7 +565,7 @@ static unsigned int silent_pic_preview(unsigned int ctx)
raw_buf = sp_frames[i];
}
raw_set_preview_rect(raw_info.active_area.x1, raw_info.active_area.y1, raw_info.active_area.x2 - raw_info.active_area.x1, raw_info.active_area.y2 - raw_info.active_area.y1);
raw_set_preview_rect(raw_info.active_area.x1, raw_info.active_area.y1, raw_info.active_area.x2 - raw_info.active_area.x1, raw_info.active_area.y2 - raw_info.active_area.y1, 1);
raw_force_aspect_ratio_1to1();
raw_preview_fast_ex(raw_buf, preview_buf, first_line, last_line, ultra_fast);
......@@ -1029,7 +1029,7 @@ silent_pic_take_lv(int interactive)
silent_pic_raw_show_focus(i);
local_raw_info.buffer = sp_frames[i % sp_buffer_count];
raw_set_preview_rect(raw_info.active_area.x1, raw_info.active_area.y1, raw_info.active_area.x2 - raw_info.active_area.x1, raw_info.active_area.y2 - raw_info.active_area.y1);
raw_set_preview_rect(raw_info.active_area.x1, raw_info.active_area.y1, raw_info.active_area.x2 - raw_info.active_area.x1, raw_info.active_area.y2 - raw_info.active_area.y1, 1);
raw_force_aspect_ratio_1to1();
raw_preview_fast_ex(local_raw_info.buffer, (void*)-1, -1, -1, -1);
ok = silent_pic_save_file(&local_raw_info, 0);
......
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