CComponents: inherit COSDFader class

Allows a simplified implementation without prior declaration and
initialisation
This commit is contained in:
2014-05-30 21:53:29 +02:00
committed by svenhoefer
parent c41b4fd015
commit 53cf57876c
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@
using namespace std; using namespace std;
//abstract basic class CComponents //abstract basic class CComponents
CComponents::CComponents() CComponents::CComponents() : COSDFader(g_settings.menu_Content_alpha)
{ {
x = saved_screen.x = 0; x = saved_screen.x = 0;
y = saved_screen.y = 0; y = saved_screen.y = 0;

View File

@@ -32,13 +32,13 @@
#include <string> #include <string>
#include <driver/pictureviewer/pictureviewer.h> #include <driver/pictureviewer/pictureviewer.h>
#include <gui/widget/icons.h> #include <gui/widget/icons.h>
#include <driver/fade.h>
/// Basic component class. /// Basic component class.
/*! /*!
Basic attributes and member functions for component sub classes Basic attributes and member functions for component sub classes
*/ */
class CComponents class CComponents : public COSDFader
{ {
private: private:
///pixel buffer handling, returns pixel buffer depends of given parameters ///pixel buffer handling, returns pixel buffer depends of given parameters