Fixing font bug, initialization was done in the wrong order.
Change-Id: Icc7b932f25be1ca6e5423bba6a5cfc965f6c3341
diff --git a/libs/rs/rsFont.cpp b/libs/rs/rsFont.cpp
index a951005..8756f82 100644
--- a/libs/rs/rsFont.cpp
+++ b/libs/rs/rsFont.cpp
@@ -339,7 +339,6 @@
mCurrentQuadIndex = 0;
mRSC = NULL;
mLibrary = NULL;
- setFontColor(0.1f, 0.1f, 0.1f, 1.0f);
// Get the renderer properties
char property[PROPERTY_VALUE_MAX];
@@ -378,6 +377,8 @@
// Compute the gamma tables
mBlackGamma = gamma;
mWhiteGamma = 1.0f / gamma;
+
+ setFontColor(0.1f, 0.1f, 0.1f, 1.0f);
}
FontState::~FontState()
@@ -831,6 +832,7 @@
} else if (luminance >= mWhiteThreshold) {
mConstants.mGamma = mWhiteGamma;
}
+
mConstantsDirty = true;
}