aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-09 01:54:37 (GMT)
committerfluxgen <fluxgen>2004-01-09 01:54:37 (GMT)
commitf5ed316411c9c7d713f8f80be9a21bbc6b692b2c (patch)
treed46856bf12fe305a7294059ee8a7965336212423
parent08f6ca0514de8e24fb98e6a8b057598fc70ebd64 (diff)
downloadfluxbox_paul-f5ed316411c9c7d713f8f80be9a21bbc6b692b2c.zip
fluxbox_paul-f5ed316411c9c7d713f8f80be9a21bbc6b692b2c.tar.bz2
init vars
-rw-r--r--src/FbTk/Color.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/FbTk/Color.cc b/src/FbTk/Color.cc
index 5ea6652..c33e692 100644
--- a/src/FbTk/Color.cc
+++ b/src/FbTk/Color.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Color.cc,v 1.6 2003/08/29 00:58:20 fluxgen Exp $ 22// $Id: Color.cc,v 1.7 2004/01/09 01:54:37 fluxgen Exp $
23 23
24#include "Color.hh" 24#include "Color.hh"
25 25
@@ -41,12 +41,17 @@ unsigned char maxValue(unsigned short colval) {
41namespace FbTk { 41namespace FbTk {
42 42
43Color::Color(): 43Color::Color():
44 m_red(0), m_green(0), m_blue(0),
45 m_pixel(0),
44 m_allocated(false), 46 m_allocated(false),
45 m_screen(0) { 47 m_screen(0) {
46 48
47} 49}
48 50
49Color::Color(const Color &col_copy):m_allocated(false), m_screen(0) { 51Color::Color(const Color &col_copy):
52 m_red(0), m_green(0), m_blue(0),
53 m_pixel(0),
54 m_allocated(false), m_screen(0) {
50 copy(col_copy); 55 copy(col_copy);
51} 56}
52 57
@@ -58,6 +63,8 @@ Color::Color(unsigned short red, unsigned short green, unsigned short blue, int
58} 63}
59 64
60Color::Color(const char *color_string, int screen): 65Color::Color(const char *color_string, int screen):
66 m_red(0), m_green(0), m_blue(0),
67 m_pixel(0),
61 m_allocated(false), 68 m_allocated(false),
62 m_screen(screen) { 69 m_screen(screen) {
63 setFromString(color_string, screen); 70 setFromString(color_string, screen);