Initialize MinikinPaint members
We are stack-allocating MinikinPaint objects in Minikin clients, and without a constructor adding new members to the struct cannot be done without updating all clients (only one right now!). Change-Id: I4170f16498bb6b07cb795495011aca58087ed0bd
This commit is contained in:
@@ -30,6 +30,8 @@ class MinikinFont;
|
|||||||
// Possibly move into own .h file?
|
// Possibly move into own .h file?
|
||||||
// Note: if you add a field here, also update LayoutCacheKey
|
// Note: if you add a field here, also update LayoutCacheKey
|
||||||
struct MinikinPaint {
|
struct MinikinPaint {
|
||||||
|
MinikinPaint() : font(0), size(0), scaleX(0), skewX(0), letterSpacing(0), paintFlags(0),
|
||||||
|
fakery() { }
|
||||||
MinikinFont *font;
|
MinikinFont *font;
|
||||||
float size;
|
float size;
|
||||||
float scaleX;
|
float scaleX;
|
||||||
|
|||||||
Reference in New Issue
Block a user