diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-11-05 20:13:52 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-11-05 20:13:52 +0000 |
commit | 2e34d2a47d88a7271880cef8494eaaf28c3d9a25 (patch) | |
tree | d81fd2b918a3f4480ed00f5169df4081ea278bb8 /navit/navit.c | |
parent | c5f164cdda4592701a51f0d5fcb1d9c395151415 (diff) | |
download | navit-2e34d2a47d88a7271880cef8494eaaf28c3d9a25.tar.gz |
Fix:core:Improve debug output
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5257 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit.c')
-rw-r--r-- | navit/navit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/navit.c b/navit/navit.c index f0b8e4bcb..223148ddd 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -422,7 +422,7 @@ navit_handle_button(struct navit *this_, int pressed, int button, struct point * { int border=16; - dbg(1,"enter %d %d (ignore %d)\n",pressed,button,this_->ignore_button); + dbg(1,"button %d %s (ignore: %d)\n",button,pressed?"pressed":"released",this_->ignore_button); callback_list_call_attr_4(this_->attr_cbl, attr_button, this_, GINT_TO_POINTER(pressed), GINT_TO_POINTER(button), p); if (this_->ignore_button) { this_->ignore_button=0; @@ -466,6 +466,7 @@ navit_handle_button(struct navit *this_, int pressed, int button, struct point * this_->motion_timeout=NULL; } if (this_->moved) { + dbg(1, "mouse drag (%d, %d)->(%d, %d)\n", this_->pressed.x, this_->pressed.y, p->x, p->y); update_transformation(this_->trans, &this_->pressed, p); graphics_draw_drag(this_->gra, NULL); transform_copy(this_->trans, this_->trans_cursor); |