Added extra checks for odd aspect ratios
This commit is contained in:
parent
dd4366eb4c
commit
6b3b7ccf81
2 changed files with 6 additions and 1 deletions
4
setup.py
4
setup.py
|
|
@ -15,7 +15,8 @@ def get_data_files():
|
|||
data_files = [
|
||||
(os.path.join('share', 'applications'), ['data/devede_ng.py.desktop']),
|
||||
(os.path.join('share', 'pixmaps'), ['data/devedeng.svg']),
|
||||
(os.path.join('share', 'icons', 'hicolor', 'scalable', 'apps'), ['data/devedeng_icon.svg']),
|
||||
(os.path.join('share', 'icons', 'hicolor',
|
||||
'scalable', 'apps'), ['data/devedeng_icon.svg']),
|
||||
(os.path.join('share', 'devedeng'), glob("data/interface/*")),
|
||||
(os.path.join('share', 'devedeng'), glob('data/pixmaps/*g')),
|
||||
(os.path.join('share', 'devedeng'), ['data/devedeng.svg']),
|
||||
|
|
@ -67,6 +68,7 @@ def compile_translations():
|
|||
except:
|
||||
pass
|
||||
|
||||
|
||||
compile_translations()
|
||||
try:
|
||||
if os.path.isfile('data/devede.1'):
|
||||
|
|
|
|||
|
|
@ -402,6 +402,9 @@ class file_movie(devedeng.interface_manager.interface_manager):
|
|||
else:
|
||||
midle_aspect_ratio = self.original_aspect_ratio
|
||||
|
||||
if midle_aspect_ratio == 0:
|
||||
midle_aspect_ratio = 1
|
||||
|
||||
if self.scaling == "scale_picture":
|
||||
self.width_midle = int(self.original_width)
|
||||
self.height_midle = int(self.original_height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue