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:
parent
3e6296ae57
commit
ef56e590dd
@ -37,7 +37,8 @@ public:
|
||||
alphaFncMode = B_ALPHA_OVERLAY;
|
||||
scale = 1.0;
|
||||
fontAliasing = true;
|
||||
font = *(fontserver->GetSystemPlain());
|
||||
if(fontserver)
|
||||
font = *(fontserver->GetSystemPlain());
|
||||
|
||||
clippReg = NULL;
|
||||
|
||||
|
@ -51,8 +51,8 @@ public:
|
||||
|
||||
void PrintToStream(void) const;
|
||||
|
||||
uint8 GetColor8(void) const;
|
||||
uint16 GetColor16(void) const;
|
||||
uint8 GetColor8(void);
|
||||
uint16 GetColor16(void);
|
||||
rgb_color GetColor32(void) const;
|
||||
|
||||
void SetColor(uint8 r, uint8 g, uint8 b, uint8 a=255);
|
||||
@ -72,6 +72,7 @@ protected:
|
||||
rgb_color color32;
|
||||
uint16 color16;
|
||||
uint8 color8;
|
||||
bool update8,update16;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user