about summary refs log tree commit diff
path: root/kcc/image.py
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-01-10 13:03:13 +0100
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-01-10 13:03:13 +0100
commit988a3575554c3a7675fe66ae014aadf7699d228a (patch)
treef4453c6fadcfbdc84b415049f1515f0723eb4fc4 /kcc/image.py
parentPut log in a file and only display a generic dialog. (diff)
downloadkcc-988a3575554c3a7675fe66ae014aadf7699d228a.tar.gz
kcc-988a3575554c3a7675fe66ae014aadf7699d228a.tar.bz2
kcc-988a3575554c3a7675fe66ae014aadf7699d228a.zip
Fixed an issue in OPF generation for device resolution (fixes #4)
Reworked options system (call with -h option to get the inline help) (fixes #3)
Diffstat (limited to 'kcc/image.py')
-rwxr-xr-xkcc/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kcc/image.py b/kcc/image.py
index 31128fa..d072a78 100755
--- a/kcc/image.py
+++ b/kcc/image.py
@@ -24,7 +24,7 @@ class ImageFlags:
     Stretch = 1 << 4
 
 
-class KindleData:
+class ProfileData:
     Palette4 = [
         0x00, 0x00, 0x00,
         0x55, 0x55, 0x55,
@@ -80,7 +80,7 @@ class KindleData:
 class ComicPage:
     def __init__(self,source,device):
         try:
-            self.size, self.palette = KindleData.Profiles[device]
+            self.size, self.palette = ProfileData.Profiles[device]
         except KeyError:
             raise RuntimeError('Unexpected output device %s' % device)
         try: