mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-06 00:56:01 +08:00
Possibly fixed OpenGL bug for MacOS?
Changed font size for titles to default size for system
This commit is contained in:
parent
41736f70c3
commit
291ccdadcb
@ -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)
|
||||
|
@ -449,7 +449,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
|
||||
else:
|
||||
glEnable(GL_LIGHTING)
|
||||
glCallList(self.modelDisplayList)
|
||||
|
||||
glFlush()
|
||||
self.SwapBuffers()
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user