Possibly fixed OpenGL bug for MacOS?

Changed font size for titles to default size for system
This commit is contained in:
Daid 2012-03-09 16:12:59 +01:00
parent 41736f70c3
commit 291ccdadcb
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class TitleRow():
sizer = panel.GetSizer()
x = sizer.GetRows()
self.title = wx.StaticText(panel, -1, name)
self.title.SetFont(wx.Font(8, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.FONTWEIGHT_BOLD))
self.title.SetFont(wx.Font(wx.SystemSettings.GetFont(wx.SYS_ANSI_VAR_FONT).GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.FONTWEIGHT_BOLD))
sizer.Add(self.title, (x,0), (1,3), flag=wx.EXPAND)
sizer.Add(wx.StaticLine(panel), (x+1,0), (1,3), flag=wx.EXPAND)
sizer.SetRows(x + 2)

View File

@ -449,7 +449,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
else:
glEnable(GL_LIGHTING)
glCallList(self.modelDisplayList)
glFlush()
self.SwapBuffers()
return