/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/view.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/view.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 145 by bh, Tue May 7 14:58:05 2002 UTC revision 149 by bh, Tue May 7 16:41:07 2002 UTC
# Line 320  class MapCanvas(wxWindow, Publisher): Line 320  class MapCanvas(wxWindow, Publisher):
320      def do_redraw(self):      def do_redraw(self):
321          # This should only be called if we have a non-empty map.          # This should only be called if we have a non-empty map.
322    
323          # get the update region and reset it.          # get the update region and reset it. We're not actually using
324            # it anymore, though.
325          update_box = self.update_region.GetBox()          update_box = self.update_region.GetBox()
326          self.update_region = wx.wxRegion()          self.update_region = wx.wxRegion()
327    
# Line 350  class MapCanvas(wxWindow, Publisher): Line 351  class MapCanvas(wxWindow, Publisher):
351    
352              # draw the map into the bitmap              # draw the map into the bitmap
353              renderer = ScreenRenderer(dc, self.scale, self.offset)              renderer = ScreenRenderer(dc, self.scale, self.offset)
354              renderer.RenderMap(self.map, update_box,  
355                # Pass the entire bitmap as update_region to the renderer.
356                # We're redrawing the whole bitmap, after all.
357                renderer.RenderMap(self.map, (0, 0, width, height),
358                                 selected_layer, selected_shape)                                 selected_layer, selected_shape)
359    
360              dc.EndDrawing()              dc.EndDrawing()

Legend:
Removed from v.145  
changed lines
  Added in v.149

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26