projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb6a3d
)
altosuilib: Repaint map when starting line draw
author
Keith Packard
<keithp@keithp.com>
Thu, 12 Jun 2014 06:04:46 +0000
(23:04 -0700)
committer
Keith Packard
<keithp@keithp.com>
Thu, 12 Jun 2014 06:04:46 +0000
(23:04 -0700)
Starting line draw will remove any existing line, so repaint to get
rid of it
Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIMapView.java
patch
|
blob
|
history
diff --git
a/altosuilib/AltosUIMapView.java
b/altosuilib/AltosUIMapView.java
index edae3e1e906e2bc72201ffbdd39e2102110e06cd..701986825ea2c3817286a83b411fe1b644c24523 100644
(file)
--- a/
altosuilib/AltosUIMapView.java
+++ b/
altosuilib/AltosUIMapView.java
@@
-134,8
+134,10
@@
public class AltosUIMapView extends Canvas implements MouseMotionListener, Mouse
notice_user_input();
if (is_drag_event(e))
drag_start(e);
- else
+ else
{
line.pressed(e, transform);
+ repaint();
+ }
}
public void mouseReleased(MouseEvent e) {