1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Tweaked HQ mode

This commit is contained in:
Paweł Jastrzębski
2014-02-18 12:56:27 +01:00
parent 7ebcccd8a2
commit d22ee1a488

View File

@@ -223,6 +223,9 @@ class ComicPage:
self.size[0] and self.image.size[1] <= self.size[1]:
size = (self.size[0], self.size[1])
elif qualityMode == 1:
# Forcing upscale to make sure that margins will be not too big
if not stretch:
upscale = True
size = (self.panelviewsize[0], self.panelviewsize[1])
elif qualityMode == 2 and not stretch and not upscale and self.image.size[0] <=\
self.size[0] and self.image.size[1] <= self.size[1]: