From c66c04cc46e96447b65bf0d87eeeec421159936e Mon Sep 17 00:00:00 2001 From: Javier Palacios Date: Fri, 2 Nov 2012 16:23:11 +0100 Subject: [PATCH] Use real radius for drawing (57660db6f7d449446c8e1531235aadf315328e7a) --- wifiscanner/wifimap/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wifiscanner/wifimap/view.py b/wifiscanner/wifimap/view.py index a7f688c..175eae8 100755 --- a/wifiscanner/wifimap/view.py +++ b/wifiscanner/wifimap/view.py @@ -221,7 +221,7 @@ class simpleMapWidget ( AbstractmapWidget , gtk.Image ) : return center_x , center_y - def plot( self , pixmap , coords , colorname , radius=3 ) : + def plot( self , pixmap , coords , colorname , radius=1 ) : center_x , center_y = self.center() @@ -229,7 +229,7 @@ class simpleMapWidget ( AbstractmapWidget , gtk.Image ) : gc.foreground = pixmap.get_colormap().alloc_color( colorname ) dest_x , dest_y = self.gps2pix( coords , ( center_x , center_y ) ) - pixmap.draw_rectangle(gc, True , dest_x , dest_y , radius , radius ) + pixmap.draw_rectangle(gc, True , dest_x-radius , dest_y-radius , 2*radius+1 , 2*radius+1 ) def line( self , pixmap , start , coords , colorname ) : -- 1.7.9.5