From f285395e0f877b57130ff3d806b9e563801a6757 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Wed, 17 Jun 2015 19:43:48 -0400 Subject: [PATCH] Fix black bitmap when dragging fit, closes #303 --- gui/shipBrowser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 925ab8c1b..8f1b40834 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1340,7 +1340,7 @@ class ShipItem(SFItem.SFBrowserItem): editCtl.SetPosition((fnEditPosX,fnEditPosY)) class PFBitmapFrame(wx.Frame): - def __init__ (self,parent, pos, bitmap): + def __init__ (self, parent, pos, bitmap): wx.Frame.__init__(self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = pos, size = wx.DefaultSize, style = wx.NO_BORDER | wx.FRAME_NO_TASKBAR @@ -1813,7 +1813,7 @@ class FitItem(SFItem.SFBrowserItem): self.AdjustControlSizePos(self.tcFitName, self.textStartx, self.toolbarx - self.editWidth - self.padding) tdc = wx.MemoryDC() - self.dragTLFBmp = wx.EmptyBitmap((self.toolbarx if self.toolbarx < 200 else 200), rect.height) + self.dragTLFBmp = wx.EmptyBitmap((self.toolbarx if self.toolbarx < 200 else 200), rect.height, 24) tdc.SelectObject(self.dragTLFBmp) tdc.Blit(0, 0, (self.toolbarx if self.toolbarx < 200 else 200), rect.height, mdc, 0, 0, wx.COPY) tdc.SelectObject(wx.NullBitmap)