- fix scaling

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@383 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
striper
2010-02-18 20:19:56 +00:00
parent 36fe3d571e
commit a6b765aa78

View File

@@ -68,8 +68,10 @@ CVfdControler::CVfdControler(const neutrino_locale_t Name, CChangeObserver* Obse
if (tmpwidth > lwidth) { if (tmpwidth > lwidth) {
lwidth = tmpwidth; lwidth = tmpwidth;
} }
// reuse tmpwidth as dummy
tmpwidth = g_Font[font_info]->getRenderWidth("15");
width = w_max((lwidth + 15 + 120 + 10 + 50 + 15), 0); width = w_max((15 + lwidth + 15 + 120 + 10 + tmpwidth + 10 + 15), 0);
height = h_max(hheight+ mheight* 3+ +mheight/2, 0); height = h_max(hheight+ mheight* 3+ +mheight/2, 0);
x = frameBuffer->getScreenX() + ((frameBuffer->getScreenWidth()-width) >> 1); x = frameBuffer->getScreenX() + ((frameBuffer->getScreenWidth()-width) >> 1);
y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight()-height)>>1); y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight()-height)>>1);