PaletteConverter now exports a static InitializeDefault() method, which

can be used (and is, by _init_interface_kit()) to initialize the ... 
er... default instance of 
PaletteConverter using the system color map, thus avoid building the 
list of colors, which takes some time. Fixes bug #505.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22508 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-10-11 13:30:56 +00:00
parent 7861bd3cfb
commit 65e63b987d
3 changed files with 26 additions and 12 deletions
@@ -44,6 +44,8 @@ public:
uint8 &blue, uint8 &alpha) const;
inline uint8 GrayColorForIndex(uint8 index) const;
static status_t InitializeDefault(bool useServer = false);
private:
const color_map *fColorMap;
color_map *fOwnColorMap;