[iagno] Highlight fix.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Highlight fix.
- Date: Mon, 15 Jul 2019 21:44:42 +0000 (UTC)
commit 4dbcd3e60e2f983cbe9fc2ca572a6943ad847a43
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Jun 22 14:47:53 2019 +0200
Highlight fix.
If the player clicks with
mouse a non-playable tile
while there is a keyboard
highlight, we need to use
the current highlight pos
as the "ghost highlight",
and not the previous one.
src/game-view.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index 8e385c8..8a1f9ae 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -902,6 +902,8 @@ private class GameView : Gtk.DrawingArea
if (game.current_state.is_valid_location_signed (x, y))
{
show_highlight = false;
+ old_highlight_x = highlight_x;
+ old_highlight_y = highlight_y;
queue_draw ();
highlight_set = true;
highlight_x = (uint8) x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]