From eb984b7f0c4781682af8aac41343987ce42cdb85 Mon Sep 17 00:00:00 2001 From: IanSB Date: Sat, 11 Jan 2020 23:58:40 +0000 Subject: [PATCH] Fix issue with screen captures when OSD enabled --- src/geometry.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/geometry.c b/src/geometry.c index 013352c8..8c11a1c7 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -605,11 +605,20 @@ void geometry_get_fb_params(capture_info_t *capinfo) { if (mode7) { capvscale >>= 1; } else { - if (double_width) { - caphscale |= 0x80000000; - } - if (double_height) { - capvscale |= 0x80000000; + if (osd_active()) { + if (double_width) { + caphscale >>= 1; + } + if (double_height) { + capvscale >>= 1; + } + } else { + if (double_width) { + caphscale |= 0x80000000; + } + if (double_height) { + capvscale |= 0x80000000; + } } }