* fix weird Shape op/point allocation

* handle out of memory situations
* don't try to copy (and assign op!) in SetData if opCount/ptCount is 0
-> FontDemo doesn't crash anymore eventually when cycling fonts in outline
mode


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22000 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2007-08-17 11:17:29 +00:00
parent a728651f04
commit f591e3a0f2
3 changed files with 62 additions and 37 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ virtual void _ReservedShape4();
void GetData(int32 *opCount, int32 *ptCount, uint32 **opList, BPoint **ptList);
void SetData(int32 opCount, int32 ptCount, const uint32 *opList, const BPoint *ptList);
void InitData();
void AllocatePts(int32 count);
void AllocateOps(int32 count);
bool AllocatePts(int32 count);
bool AllocateOps(int32 count);
uint32 fState;
uint32 fBuildingOp;