Fix vertical text scaling and clipping on Mac.
https://codereview.chromium.org/15064003/
git-svn-id: http://skia.googlecode.com/svn/trunk@9142 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 1010632..40c9d1f 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1846,7 +1846,7 @@
return true;
case kUp_SkKey:
if (USE_ARROWS_FOR_ZOOM) {
- this->changeZoomLevel(1.f);
+ this->changeZoomLevel(1.f / 32.f);
} else {
fNClip = !fNClip;
this->inval(NULL);
@@ -1855,7 +1855,7 @@
return true;
case kDown_SkKey:
if (USE_ARROWS_FOR_ZOOM) {
- this->changeZoomLevel(-1.f);
+ this->changeZoomLevel(-1.f / 32.f);
} else {
this->setConfig(cycle_configs(this->getBitmap().config()));
this->updateTitle();