mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user