aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkplatform.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-11 23:31:03 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-11 23:31:03 +0100
commitc320585dddc168f79fe502dfa504fcec188b2329 (patch)
tree13a7c70e8b63d4c9f7e8868ada8048c416486318 /dw/fltkplatform.hh
parent8e34df3e95fb93b1857c9881d49b6aca46e159e9 (diff)
always use shaded colors
This makes things much simpler and improves sharing of colors. If computing two more shades really proves to be a performance issue, we can shade on demand without exposing this optimization to the interface.
Diffstat (limited to 'dw/fltkplatform.hh')
-rw-r--r--dw/fltkplatform.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/dw/fltkplatform.hh b/dw/fltkplatform.hh
index e7493fba..e4600516 100644
--- a/dw/fltkplatform.hh
+++ b/dw/fltkplatform.hh
@@ -34,13 +34,13 @@ class FltkColor: public core::style::Color
static lout::container::typed::HashTable <dw::core::style::ColorAttrs,
FltkColor> *colorsTable;
- FltkColor (int color, core::style::Color::Type type);
+ FltkColor (int color);
~FltkColor ();
public:
int colors[SHADING_NUM];
- static FltkColor *create(int color, core::style::Color::Type type);
+ static FltkColor *create(int color);
};
@@ -133,8 +133,7 @@ public:
core::style::Font *createFont (core::style::FontAttrs *attrs,
bool tryEverything);
- core::style::Color *createSimpleColor (int color);
- core::style::Color *createShadedColor (int color);
+ core::style::Color *createColor (int color);
core::Imgbuf *createImgbuf (core::Imgbuf::Type type, int width, int height);