Fix hinting and add subpixel to SampleApp.
This change allows users of SampleApp to cycle through all of the hinting modes
(using the 'h' key) and also toggle subpixel positioning on the paint (using
the 's' key). Because 'up' and 'down' have replaced its functionality,
'scale', the exising user of 's', is removed.
git-svn-id: http://skia.googlecode.com/svn/trunk@9421 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
index e2bdc5f..162d4ef 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -183,7 +183,6 @@
bool fRotate;
bool fPerspAnim;
SkScalar fPerspAnimTime;
- bool fScale;
bool fRequestGrabImage;
bool fMeasureFPS;
SkMSec fMeasureFPS_Time;
@@ -208,7 +207,8 @@
SkOSMenu::TriState fLCDState;
SkOSMenu::TriState fAAState;
SkOSMenu::TriState fFilterState;
- SkOSMenu::TriState fHintingState;
+ SkOSMenu::TriState fSubpixelState;
+ int fHintingState;
SkOSMenu::TriState fTilingState;
unsigned fFlipAxis;