Possibly fixed OpenGL bug for MacOS?

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

No files matched your search

+1 -1
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)
+1 -1
View File
@@ -449,7 +449,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
else:
glEnable(GL_LIGHTING)
glCallList(self.modelDisplayList)
glFlush()
self.SwapBuffers()
return