comparison orpg/mapper/miniatures_handler.py @ 7:2b9e766f9dee grumpy-goblin

Tests fixes issues with Linux GUI effecting miniatures Files: /mapper/miniatures.py /mapper/miniatures_handler.py
author sirebral
date Thu, 16 Jul 2009 14:26:50 -0500
parents 4385a7d0efd1
children 73d9286c22cf
comparison
equal deleted inserted replaced
6:668694b93f6c 7:2b9e766f9dee
581 self.drag_mini = mini 581 self.drag_mini = mini
582 if deselecting_selected_mini: 582 if deselecting_selected_mini:
583 return 583 return
584 self.sel_min = mini 584 self.sel_min = mini
585 self.sel_min.selected = True 585 self.sel_min.selected = True
586 """
586 dc = wx.ClientDC(self.canvas) 587 dc = wx.ClientDC(self.canvas)
587 self.canvas.PrepareDC(dc) 588 self.canvas.PrepareDC(dc)
588 dc.SetUserScale(self.canvas.layers['grid'].mapscale,self.canvas.layers['grid'].mapscale) 589 dc.SetUserScale(self.canvas.layers['grid'].mapscale,self.canvas.layers['grid'].mapscale)
589 self.sel_min.draw(dc, self.canvas.layers['miniatures']) 590 self.sel_min.draw(dc, self.canvas.layers['miniatures'])
591 """
592 self.canvas.Refresh()
590 else: 593 else:
591 self.drag_mini = None 594 self.drag_mini = None
592 pos = self.getLogicalPosition(evt) 595 pos = self.getLogicalPosition(evt)
593 self.moveSelectedMini(pos) 596 self.moveSelectedMini(pos)
594 self.deselectAndRefresh() 597 self.deselectAndRefresh()