menue.cpp:-fix OSD on corners switch

Origin commit data
------------------
Branch: ni/coolstream
Commit: d8cdb87e83
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-07-08 (Sun, 08 Jul 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-07-08 18:30:03 +02:00
parent 843ee72c6a
commit 90c718c305
2 changed files with 9 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
#include <driver/screen_max.h> #include <driver/screen_max.h>
#include <system/debug.h> #include <system/debug.h>
#include <unistd.h>
#define TOUCH_BASE "/var/etc/." #define TOUCH_BASE "/var/etc/."

View File

@@ -850,6 +850,14 @@ void CMenuWidget::paint()
saveScreen(); saveScreen();
#endif #endif
CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8, nameString.c_str()); CVFD::getInstance()->setMode(CVFD::MODE_MENU_UTF8, nameString.c_str());
//clear backround on corners switch
static bool corners = g_settings.rounded_corners;
if(g_settings.rounded_corners != corners){
corners = g_settings.rounded_corners;
if(!g_settings.rounded_corners){
frameBuffer->paintBackgroundBoxRel(x, y+full_height, full_width, CORNER_RADIUS_LARGE-2+SHADOW_OFFSET);
}
}
//paint shadow and backround //paint shadow and backround
int rad = RADIUS_LARGE-2; int rad = RADIUS_LARGE-2;