framebuffer_ng: add getScreen*Rel() functions

Origin commit data
------------------
Branch: ni/coolstream
Commit: 575c7c1da3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-04-06 11:29:27 +02:00
parent 7254e280e3
commit a844812b8b
2 changed files with 16 additions and 0 deletions

View File

@@ -308,6 +308,17 @@ unsigned int CFrameBuffer::getScreenHeight(bool real)
return g_settings.screen_EndY - g_settings.screen_StartY;
}
unsigned int CFrameBuffer::getScreenWidthRel()
{
// always reduce a possible detailline
return (g_settings.screen_EndX - g_settings.screen_StartX - 2*ConnectLineBox_Width) * (g_settings.big_windows ? 100 : NON_BIG_WINDOWS) / 100;
}
unsigned int CFrameBuffer::getScreenHeightRel()
{
return (g_settings.screen_EndY - g_settings.screen_StartY) * (g_settings.big_windows ? 100 : NON_BIG_WINDOWS) / 100;
}
unsigned int CFrameBuffer::getScreenX()
{
return g_settings.screen_StartX;