Tweaks for FB on TV.

This commit is contained in:
sorgelig
2020-01-09 19:54:17 +08:00
parent ee9270de8c
commit 229fcf3ba5

View File

@@ -750,7 +750,6 @@ void video_fb_enable(int enable, int n)
{
if (fb_base)
{
if (cfg.direct_video) set_vga_fb(enable);
int res = spi_uio_cmd_cont(UIO_SET_FBUF);
if (res)
{
@@ -810,6 +809,7 @@ void video_fb_enable(int enable, int n)
}
DisableIO();
if (cfg.direct_video) set_vga_fb(enable);
if (is_menu_core()) user_io_8bit_set_status((fb_enabled && !fb_num) ? 0x160 : 0, 0x1E0);
}
}
@@ -1250,6 +1250,8 @@ void video_menu_bg(int n, int idle)
if (*bg)
{
if (cfg.direct_video && (v_cur.item[5] < 300)) dst_h /= 2;
imlib_context_set_image(*bg);
imlib_blend_image_onto_image(logo, 1,
0, 0, //int source_x, int source_y,