changeset 2721:e75a38ffb384

small logic change
author Tomasz Mon <desowin@gmail.com>
date Sun, 22 Jun 2008 17:36:45 +0200
parents e944ac38f0a0
children 020f8ac96596
files src/skins/ui_skinned_button.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_skinned_button.c	Sun Jun 22 13:46:38 2008 +0200
+++ b/src/skins/ui_skinned_button.c	Sun Jun 22 17:36:45 2008 +0200
@@ -398,8 +398,8 @@
 }
 
 static void button_released(UiSkinnedButton *button) {
+    if(button->hover && button->button_down) ui_skinned_button_clicked(button);
     button->button_down = FALSE;
-    if(button->hover) ui_skinned_button_clicked(button);
     ui_skinned_button_update_state(button);
 }