From 0cab2ca9fd8e3901b16f42e0adf191dbcbd1cdaa Mon Sep 17 00:00:00 2001 From: satbaby Date: Thu, 17 Dec 2009 10:36:44 +0000 Subject: [PATCH] port getScreenStartX() & getScreenStartY() code from tuxbox CVS; use getScreenStartX(),getScreenStartY(),h_max(),w_max() routines git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@88 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/imageinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index fe2655497..9f0aeb658 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -82,8 +82,8 @@ int CImageInfo::exec(CMenuTarget* parent, const std::string &) width = frameBuffer->getScreenWidth() - 10; height = frameBuffer->getScreenHeight() - 10; - x=(((g_settings.screen_EndX- g_settings.screen_StartX)-width) / 2) + g_settings.screen_StartX; - y=(((g_settings.screen_EndY- g_settings.screen_StartY)-height) / 2) + g_settings.screen_StartY; + x=getScreenStartX( width ); + y=getScreenStartY( height ); paint();