From a725528747ee0a41a5c55d57dea3c3f60dd4c4a5 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 31 Oct 2017 09:55:45 +0100 Subject: [PATCH] armbox: fullscreen osd ;) --- libarmbox/init.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libarmbox/init.cpp b/libarmbox/init.cpp index fc1129f..26b98c7 100644 --- a/libarmbox/init.cpp +++ b/libarmbox/init.cpp @@ -10,6 +10,7 @@ #include #include "pwrmngr.h" +#include #include "lt_debug.h" #define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_INIT, NULL, args) @@ -26,6 +27,16 @@ void init_td_api() { cCpuFreqManager f; f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */ + char buffer[64]; + sprintf(buffer, "%x", 0); + proc_put("/proc/stb/fb/dst_top", buffer, strlen(buffer)); + proc_put("/proc/stb/fb/dst_left", buffer, strlen(buffer)); + sprintf(buffer, "%x", 576); + proc_put("/proc/stb/fb/dst_height", buffer, strlen(buffer)); + sprintf(buffer, "%x", 720); + proc_put("/proc/stb/fb/dst_width", buffer, strlen(buffer)); + sprintf(buffer, "%x", 1); + proc_put("/proc/stb/fb/dst_apply", buffer, strlen(buffer)); } initialized = true; lt_info("%s end\n", __FUNCTION__);