Speedup for color lookups
Prevent crashes when things other than the server utilize LayerData objects git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4949 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,7 +37,8 @@ public:
|
|||||||
alphaFncMode = B_ALPHA_OVERLAY;
|
alphaFncMode = B_ALPHA_OVERLAY;
|
||||||
scale = 1.0;
|
scale = 1.0;
|
||||||
fontAliasing = true;
|
fontAliasing = true;
|
||||||
font = *(fontserver->GetSystemPlain());
|
if(fontserver)
|
||||||
|
font = *(fontserver->GetSystemPlain());
|
||||||
|
|
||||||
clippReg = NULL;
|
clippReg = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ public:
|
|||||||
|
|
||||||
void PrintToStream(void) const;
|
void PrintToStream(void) const;
|
||||||
|
|
||||||
uint8 GetColor8(void) const;
|
uint8 GetColor8(void);
|
||||||
uint16 GetColor16(void) const;
|
uint16 GetColor16(void);
|
||||||
rgb_color GetColor32(void) const;
|
rgb_color GetColor32(void) const;
|
||||||
|
|
||||||
void SetColor(uint8 r, uint8 g, uint8 b, uint8 a=255);
|
void SetColor(uint8 r, uint8 g, uint8 b, uint8 a=255);
|
||||||
@@ -72,6 +72,7 @@ protected:
|
|||||||
rgb_color color32;
|
rgb_color color32;
|
||||||
uint16 color16;
|
uint16 color16;
|
||||||
uint8 color8;
|
uint8 color8;
|
||||||
|
bool update8,update16;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user