mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
*CVolume: move static g_volscale to volscale
- Is only needed in this class, not global. - move scope of variable x_corr. (style) scope of the variable x_corr can be limited - move declaration of framebuffer into header file
This commit is contained in:
@@ -28,11 +28,15 @@
|
||||
#ifndef __CVOLUME__
|
||||
#define __CVOLUME__
|
||||
|
||||
#include <driver/framebuffer.h>
|
||||
|
||||
#define ROUNDED g_settings.rounded_corners ? vbar_h/2 : 0
|
||||
|
||||
class CVolume : public CChangeObserver
|
||||
{
|
||||
private:
|
||||
CFrameBuffer * frameBuffer;
|
||||
CProgressBar *volscale;
|
||||
void refreshVolumebar(int current_volume);
|
||||
|
||||
int x, y, sy, sw, sh;
|
||||
@@ -55,7 +59,7 @@ class CVolume : public CChangeObserver
|
||||
CVolume();
|
||||
~CVolume();
|
||||
static CVolume* getInstance();
|
||||
|
||||
|
||||
int spacer, mute_dx;
|
||||
void Init();
|
||||
void AudioMute(int newValue, bool isEvent= false);
|
||||
|
Reference in New Issue
Block a user