aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleApp.cpp')
-rw-r--r--samplecode/SampleApp.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index bb55da3634..b7fe051e4a 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -825,6 +825,18 @@ bool SampleWindow::onHandleChar(SkUnichar uni) {
this->updateTitle();
this->inval(NULL);
break;
+#ifdef SK_BUILD_FOR_UNIX
+ // These methods have not been written for other platforms yet.
+ case 'i':
+ this->zoomIn();
+ break;
+ case 'o':
+ this->zoomOut();
+ break;
+ case 'z':
+ this->toggleZoomer();
+ break;
+#endif
default:
break;
}