SampleAAGeometry tweaks
- Use capital letters avoid conflict with built-in commands,
particularly zoom-window ('z') and toggle-backend ('d').
- Increase kHitToleranace for touch screens.
Bug: skia:
Change-Id: I6feaabd8aa06600bdeb4623ab081d973369c4841
Reviewed-on: https://skia-review.googlesource.com/52528
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
diff --git a/samplecode/SampleAAGeometry.cpp b/samplecode/SampleAAGeometry.cpp
index 350d3c8..da96a0b 100644
--- a/samplecode/SampleAAGeometry.cpp
+++ b/samplecode/SampleAAGeometry.cpp
@@ -815,7 +815,7 @@
bool fHandlePathMove;
bool fShowLegend;
bool fHideAll;
- const int kHitToleranace = 5;
+ const int kHitToleranace = 25;
public:
@@ -1807,10 +1807,10 @@
{ ' ', 0, "space", "center path", &AAGeometryView::scaleToFit },
{ '-', 0, "-", "zoom out", &AAGeometryView::scaleDown },
{ '+', '=', "+/=", "zoom in", &AAGeometryView::scaleUp },
- { 'd', 0, "d", "dump to console", &AAGeometryView::pathDump },
- { 'h', 0, "h", "hide controls", &AAGeometryView::hideAll },
- { 'r', 0, "r", "reset path", &AAGeometryView::constructPath },
- { 'z', 0, "z", "undo", &AAGeometryView::undo },
+ { 'D', 0, "D", "dump to console", &AAGeometryView::pathDump },
+ { 'H', 0, "H", "hide controls", &AAGeometryView::hideAll },
+ { 'R', 0, "R", "reset path", &AAGeometryView::constructPath },
+ { 'Z', 0, "Z", "undo", &AAGeometryView::undo },
{ '?', 0, "?", "show legend", &AAGeometryView::showLegend },
};