From 5c3ac865cf939d5b42f4225e42b60b9ebdc9753c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 29 Dec 2013 03:44:49 +0000 Subject: [PATCH] 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 --- wx/lib/agw/advancedsplash.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/wx/lib/agw/advancedsplash.py b/wx/lib/agw/advancedsplash.py index 999d02fb..93237f06 100644 --- a/wx/lib/agw/advancedsplash.py +++ b/wx/lib/agw/advancedsplash.py @@ -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): """