forked from openlp/openlp
Fix black background on Display resizing
Fixes: https://launchpad.net/bugs/696557
This commit is contained in:
parent
46e18871aa
commit
af9e9641c4
@ -86,8 +86,7 @@ class ImageManager(QtCore.QObject):
|
||||
for key in self._cache.keys():
|
||||
image = self._cache[key]
|
||||
image.dirty = True
|
||||
fullpath = os.path.join(image.path, image.name)
|
||||
image.image = resize_image(fullpath,
|
||||
image.image = resize_image(image.path,
|
||||
self.width, self.height)
|
||||
self._cache_dirty = True
|
||||
# only one thread please
|
||||
@ -165,4 +164,4 @@ class ImageManager(QtCore.QObject):
|
||||
image = self._cache[key]
|
||||
if image.dirty:
|
||||
image.image_bytes = image_to_byte(image.image)
|
||||
image.dirty = False
|
||||
image.dirty = False
|
||||
|
@ -198,7 +198,7 @@ class MainDisplay(DisplayWidget):
|
||||
The slide text to be displayed
|
||||
"""
|
||||
log.debug(u'text to display')
|
||||
# Wait for the webview to update before displayiong text.
|
||||
# Wait for the webview to update before displaying text.
|
||||
while not self.loaded:
|
||||
Receiver.send_message(u'openlp_process_events')
|
||||
self.frame.evaluateJavaScript(u'show_text("%s")' % \
|
||||
|
Loading…
Reference in New Issue
Block a user