Fix theme editing display size

This commit is contained in:
Tim Bentley 2010-08-05 21:26:39 +01:00
parent 9722b4e382
commit b612ece199
2 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,8 @@ class RenderManager(object):
"""
log.debug(u'Update Display')
self.calculate_default(self.screens.current[u'size'])
self.display = MainDisplay(self, self.screens, False)
self.display.setup()
self.renderer.bg_frame = None
def set_global_theme(self, global_theme, theme_level=ThemeLevel.Global):

View File

@ -275,6 +275,7 @@ class MainDisplay(DisplayWidget):
preview = QtGui.QImage(self.screen[u'size'].width(),
self.screen[u'size'].height(),
QtGui.QImage.Format_ARGB32_Premultiplied)
print self.screen
painter = QtGui.QPainter(preview)
painter.setRenderHint(QtGui.QPainter.Antialiasing)
self.frame.render(painter)