FS-8921 #resolve [Tweak banner code in mod conference]
This commit is contained in:
parent
49b9d7f9ff
commit
a3e316157f
|
@ -449,6 +449,7 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg,
|
|||
|
||||
if (layer->banner_img && !layer->banner_patched) {
|
||||
switch_img_fill(layer->canvas->img, layer->x_pos + layer->geometry.border, layer->y_pos + layer->geometry.border, layer->screen_w, layer->screen_h, &layer->canvas->letterbox_bgcolor);
|
||||
switch_img_fit(&layer->banner_img, layer->screen_w, layer->screen_h, SWITCH_FIT_SIZE);
|
||||
switch_img_patch(IMG, layer->banner_img, layer->x_pos + layer->geometry.border, layer->y_pos + (layer->screen_h - layer->banner_img->d_h) + layer->geometry.border);
|
||||
|
||||
if (!freeze) {
|
||||
|
|
|
@ -1061,7 +1061,7 @@ SWITCH_DECLARE(uint32_t) switch_img_txt_handle_render(switch_img_txt_handle_t *h
|
|||
pen.y += slot->advance.y >> 6;
|
||||
}
|
||||
|
||||
ret = width + slot->bitmap.width * 3;
|
||||
ret = width + slot->bitmap.width * 5;
|
||||
|
||||
FT_Done_Face(face);
|
||||
|
||||
|
@ -1128,6 +1128,7 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_
|
|||
|
||||
if (len < 5) len = 5;
|
||||
|
||||
|
||||
switch_img_txt_handle_create(&txthandle, font_face, fg, bg, font_size, 0, NULL);
|
||||
switch_color_set_rgb(&bgcolor, bg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue