mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- fix scaling
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@382 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -86,8 +86,8 @@ CColorChooser::CColorChooser(const neutrino_locale_t Name, unsigned char *R, uns
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
width = w_max((offset + 290), 0); //fixme: get rid of hardcoded 290
|
width = w_max((offset + (162 + mheight*4 + 10)), 0);
|
||||||
height = h_max(hheight+ mheight* 4, 0);
|
height = h_max(hheight+ mheight* 4, 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);
|
||||||
|
@@ -69,7 +69,7 @@ CVfdControler::CVfdControler(const neutrino_locale_t Name, CChangeObserver* Obse
|
|||||||
lwidth = tmpwidth;
|
lwidth = tmpwidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
width = w_max((210 + lwidth), 0); // fixme: get rid of hardcoded 210 (slider + slidertext)
|
width = w_max((lwidth + 15 + 120 + 10 + 50 + 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);
|
||||||
|
Reference in New Issue
Block a user