diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-10-20 11:46:47 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-20 18:17:35 +0000 |
commit | 08d1a25073e87b2205171f2d5242c6481701aa37 (patch) | |
tree | d89c3437d65febbea0c6e44912f44c62c722a416 /samplecode/SampleAAGeometry.cpp | |
parent | 11d5236c5a8bf21a02ce5ddecfe3febbe29819f5 (diff) |
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>
Diffstat (limited to 'samplecode/SampleAAGeometry.cpp')
-rw-r--r-- | samplecode/SampleAAGeometry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/samplecode/SampleAAGeometry.cpp b/samplecode/SampleAAGeometry.cpp index 350d3c880f..da96a0b0ef 100644 --- a/samplecode/SampleAAGeometry.cpp +++ b/samplecode/SampleAAGeometry.cpp @@ -815,7 +815,7 @@ class AAGeometryView : public SampleView { bool fHandlePathMove; bool fShowLegend; bool fHideAll; - const int kHitToleranace = 5; + const int kHitToleranace = 25; public: @@ -1807,10 +1807,10 @@ static struct KeyCommand { { ' ', 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 }, }; |