*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:
2012-07-29 22:31:24 +02:00
committed by micha-bbg
parent ec7ed403a1
commit f3ac0b9fd9
2 changed files with 16 additions and 12 deletions

View File

@@ -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);