From 88be38e40d3b39d4f26bc66171de0c315b7ca1d5 Mon Sep 17 00:00:00 2001 From: Li Fanxi Date: Thu, 28 Oct 2010 18:26:07 +0800 Subject: [PATCH] [Bug] Fixed a bug about the screen size used for comic generation. --- src/calibre/customize/profiles.py | 4 ++-- src/calibre/ebooks/snb/output.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index 88cef50e39..63083f8229 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -655,8 +655,8 @@ class BambookOutput(OutputProfile): description = _('This profile is intended for the Sanda Bambook.') # Screen size is a best guess - screen_size = (800, 600) - comic_screen_size = (700, 540) + screen_size = (600, 800) + comic_screen_size = (540, 700) dpi = 168.451 fbase = 12 fsizes = [10, 12, 14, 16] diff --git a/src/calibre/ebooks/snb/output.py b/src/calibre/ebooks/snb/output.py index 619fff1ee2..a7407c1000 100644 --- a/src/calibre/ebooks/snb/output.py +++ b/src/calibre/ebooks/snb/output.py @@ -228,7 +228,7 @@ class SNBOutput(OutputFormatPlugin): img.load(imageData) (x,y) = img.size if self.opts: - SCREEN_Y, SCREEN_X = self.opts.output_profile.comic_screen_size + SCREEN_X, SCREEN_Y = self.opts.output_profile.comic_screen_size else: SCREEN_X = 540 SCREEN_Y = 700