1/*
2 * Copyright 2006, 2011, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5
6
7#include "CurrentColor.h"
8
9#include <stdio.h>
10
11#include <OS.h>
12
13#include "ui_defines.h"
14
15
16CurrentColor::CurrentColor()
17	: Observable(),
18	  fColor(kBlack)
19{
20}
21
22
23CurrentColor::~CurrentColor()
24{
25}
26
27
28void
29CurrentColor::SetColor(rgb_color color)
30{
31	if ((uint32&)fColor == (uint32&)color)
32		return;
33
34	fColor = color;
35	Notify();
36}
37
38