From ba9c2f38a7734f614dc4ca3e2fb16eead853d4bc Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sat, 7 Feb 2015 13:46:59 +0800 Subject: [PATCH] FS-7513: round screen size to even numbers to prevent green lines on edge with 1up_top_left+5 and 6x6 layouts --- src/mod/applications/mod_conference/mod_conference.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 22190fc4fd..484683cb9a 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -943,6 +943,9 @@ static void reset_layer(mcu_canvas_t *canvas, mcu_layer_t *layer) screen_w = canvas->img->d_w * layer->geometry.scale / SCALE_FACTOR; screen_h = canvas->img->d_h * layer->geometry.scale / SCALE_FACTOR; + if (screen_w % 2) screen_w++; // round to even + if (screen_h % 2) screen_h++; // round to even + x = canvas->img->d_w * layer->geometry.x / SCALE_FACTOR; y = canvas->img->d_h * layer->geometry.y / SCALE_FACTOR;