From cefd7c496d93fbb34496ecb651219aac5c076db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 24 Jun 2015 17:50:59 +0200 Subject: [PATCH] Sudoku: Improved value hint. * Removed toggling its visibility on click - it's now always visible once it's there. * Also update and show it when changing a value or hint. --- src/apps/sudoku/SudokuView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/sudoku/SudokuView.cpp b/src/apps/sudoku/SudokuView.cpp index fd0adbb7c4..ae12cc39fc 100644 --- a/src/apps/sudoku/SudokuView.cpp +++ b/src/apps/sudoku/SudokuView.cpp @@ -599,8 +599,7 @@ SudokuView::MouseDown(BPoint where) if (buttons == B_PRIMARY_MOUSE_BUTTON && clicks == 1) { uint32 value = fField->ValueAt(x, y); if (value != 0) { - // Toggle value hint - _SetValueHintValue(fValueHintValue == value ? ~0UL : value); + _SetValueHintValue(value); return; } } @@ -612,6 +611,7 @@ SudokuView::MouseDown(BPoint where) uint32 value = hintX + hintY * fBlockSize; uint32 field = x + y * fField->Size(); _PushUndo(); + _SetValueHintValue(value + 1); if ((clicks == 2 && fLastHintValue == value && fLastField == field) || (buttons & (B_SECONDARY_MOUSE_BUTTON