From 53cf57876c63c7f51966dda9539da81efaa5505b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 30 May 2014 21:53:29 +0200 Subject: [PATCH] CComponents: inherit COSDFader class Allows a simplified implementation without prior declaration and initialisation --- src/gui/components/cc_base.cpp | 2 +- src/gui/components/cc_base.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_base.cpp b/src/gui/components/cc_base.cpp index 22b06f7f8..33f074794 100644 --- a/src/gui/components/cc_base.cpp +++ b/src/gui/components/cc_base.cpp @@ -35,7 +35,7 @@ using namespace std; //abstract basic class CComponents -CComponents::CComponents() +CComponents::CComponents() : COSDFader(g_settings.menu_Content_alpha) { x = saved_screen.x = 0; y = saved_screen.y = 0; diff --git a/src/gui/components/cc_base.h b/src/gui/components/cc_base.h index 40e764c00..7a9fc262b 100644 --- a/src/gui/components/cc_base.h +++ b/src/gui/components/cc_base.h @@ -32,13 +32,13 @@ #include #include #include - +#include /// Basic component class. /*! Basic attributes and member functions for component sub classes */ -class CComponents +class CComponents : public COSDFader { private: ///pixel buffer handling, returns pixel buffer depends of given parameters