From ae320ba4118af9beb77de6b33f8542d9f30fad0b Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 31 Jan 2014 16:31:05 +0400 Subject: [PATCH] gui/imageinfo.cpp: honor screen setup values --- src/gui/imageinfo.cpp | 7 +++++++ src/gui/imageinfo.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 4d980e519..e1e71e63f 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -181,7 +181,14 @@ void CImageInfo::ShowWindow() { CComponentsFooter *footer = NULL; if (cc_win == NULL){ + CFrameBuffer *frameBuffer = CFrameBuffer::getInstance (); +#if 0 cc_win = new CComponentsWindowMax(LOCALE_IMAGEINFO_HEAD, NEUTRINO_ICON_INFO); +#endif + cc_win = new CComponentsWindow(frameBuffer->getScreenX(), frameBuffer->getScreenY(), + frameBuffer->getScreenWidth(), + frameBuffer->getScreenHeight(), + LOCALE_IMAGEINFO_HEAD, NEUTRINO_ICON_INFO); cc_win->setWindowHeaderButtons(CComponentsHeader::CC_BTN_MENU | CComponentsHeader::CC_BTN_EXIT); footer = cc_win->getFooterObject(); footer->setColorBody(COL_INFOBAR_SHADOW_PLUS_1); diff --git a/src/gui/imageinfo.h b/src/gui/imageinfo.h index 46e7615eb..d60f2df96 100644 --- a/src/gui/imageinfo.h +++ b/src/gui/imageinfo.h @@ -64,7 +64,8 @@ class CImageInfo : public CMenuTarget void ShowWindow(); void ScrollLic(bool scrollDown); - CComponentsWindowMax *cc_win; + //CComponentsWindowMax *cc_win; + CComponentsWindow *cc_win; CComponentsForm *cc_info; CComponentsPIP *cc_tv; CComponentsInfoBox *cc_lic;