Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: samplecode/SampleApp.cpp

Issue 15064003: Fix vertical text scaling on Mac. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add SK_IGNORE_MAC_TEXT_BOUNDS_FIX for rebaselining, address comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/verttext.cpp ('k') | src/ports/SkFontHost_mac.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.cpp
===================================================================
--- samplecode/SampleApp.cpp (revision 9039)
+++ samplecode/SampleApp.cpp (working copy)
@@ -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();
« no previous file with comments | « gm/verttext.cpp ('k') | src/ports/SkFontHost_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698