From 08d1a25073e87b2205171f2d5242c6481701aa37 Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Fri, 20 Oct 2017 11:46:47 -0600 Subject: 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 Reviewed-by: Cary Clark --- samplecode/SampleAAGeometry.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'samplecode/SampleAAGeometry.cpp') 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 }, }; -- cgit v1.2.3