mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
-add menu volume pos
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@384 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -3692,10 +3692,37 @@ void CNeutrinoApp::setVolume(const neutrino_msg_t key, const bool bDoPaint, bool
|
||||
int y = g_settings.screen_EndY - 100;
|
||||
#else
|
||||
|
||||
int x = frameBuffer->getScreenX() + 10;
|
||||
int y = frameBuffer->getScreenY() + 0;
|
||||
int x = frameBuffer->getScreenX();
|
||||
int y = frameBuffer->getScreenY();
|
||||
#endif
|
||||
int vol = g_settings.current_volume;
|
||||
int sw = frameBuffer->getScreenWidth();
|
||||
int sh = frameBuffer->getScreenHeight();
|
||||
int borderX = x ;
|
||||
switch( g_settings.volume_pos )
|
||||
{
|
||||
case 0:// upper right
|
||||
x = sw - dx;
|
||||
break;
|
||||
case 1:// upper left
|
||||
x = borderX;
|
||||
break;
|
||||
case 2:// bottom left
|
||||
x = borderX;
|
||||
y = sh - dy;
|
||||
break;
|
||||
case 3:// bottom right
|
||||
x = sw - dx;
|
||||
y = sh - dy;
|
||||
break;
|
||||
case 4:// center default
|
||||
x = ((sw - dx) / 2) + x;
|
||||
break;
|
||||
case 5:// center higher
|
||||
x = ((sw - dx) / 2) + x;
|
||||
y = sh - 100;
|
||||
break;
|
||||
}
|
||||
|
||||
fb_pixel_t * pixbuf = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user