The window size on OSX needs to be at least 1 pix larger than the visible area of the region. Bump up the size in case there is no transparency defined for the bitmap.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-12-29 03:44:49 +00:00
parent e55a2de09b
commit 5c3ac865cf

View File

@@ -263,11 +263,11 @@ class AdvancedSplash(wx.Frame):
else:
self.SetSplashShape()
w = self.bmp.GetWidth()
h = self.bmp.GetHeight()
w = self.bmp.GetWidth() + 1
h = self.bmp.GetHeight() + 1
# Set The AdvancedSplash Size To The Bitmap Size
self.SetSize((w, h))
self.SetClientSize((w, h))
if agwStyle & AS_CENTER_ON_SCREEN:
self.CenterOnScreen()
@@ -287,6 +287,8 @@ class AdvancedSplash(wx.Frame):
self.Bind(wx.EVT_CHAR, self.OnCharEvents)
self.Show()
if wx.Platform == "__WXMAC__":
wx.SafeYield(self, True)
def SetSplashShape(self, event=None):
@@ -343,10 +345,6 @@ class AdvancedSplash(wx.Frame):
dc.SetTextForeground(textcolour)
dc.DrawText(text, textpos[0], textpos[1])
# Seems like this only helps on OS X.
if wx.Platform == "__WXMAC__":
wx.SafeYield(self, True)
def OnNotify(self, event):
"""