Fixed some float --> int warnings and ensured that the ColourDB is updated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,9 +47,10 @@ else:
|
||||
ID_DRAWMAP_MENU = wxNewId()
|
||||
ID_DRAWMAP2_MENU = wxNewId()
|
||||
ID_CLEAR_MENU = wxNewId()
|
||||
|
||||
|
||||
wxPython.lib.colourdb.updateColourDB()
|
||||
colors = wxPython.lib.colourdb.getColourList()
|
||||
|
||||
|
||||
LineStyles = floatcanvas.draw_object.LineStyleList.keys()
|
||||
|
||||
class DrawFrame(wxFrame):
|
||||
|
@@ -920,9 +920,9 @@ class FloatCanvas(wxPanel):
|
||||
|
||||
def MakeNewBuffers(self):
|
||||
# Make new offscreen bitmap:
|
||||
self._Buffer = wxEmptyBitmap(self.PanelSize[0],self.PanelSize[1])
|
||||
self._Buffer = wxEmptyBitmap(int(self.PanelSize[0]), int(self.PanelSize[1]))
|
||||
if self.UseBackground:
|
||||
self._BackBuffer = wxEmptyBitmap(self.PanelSize[0],self.PanelSize[1])
|
||||
self._BackBuffer = wxEmptyBitmap((self.PanelSize[0]), (self.PanelSize[1]))
|
||||
self._BackgroundDirty = 1
|
||||
else:
|
||||
pass
|
||||
@@ -1006,7 +1006,7 @@ class FloatCanvas(wxPanel):
|
||||
i+=1
|
||||
Object._Draw(dc,self.WorldToPixel,self.ScaleFunction)
|
||||
if i % self.NumBetweenBlits == 0:
|
||||
ScreenDC.Blit(0, 0, self.PanelSize[0],self.PanelSize[1], dc, 0, 0)
|
||||
ScreenDC.Blit(0, 0, int(self.PanelSize[0]), int(self.PanelSize[1]), dc, 0, 0)
|
||||
print "there were %i objects drawn"%i
|
||||
dc.EndDrawing()
|
||||
else:
|
||||
|
Reference in New Issue
Block a user