|
@@ -81,7 +81,7 @@ class ImageScreen:
|
81
|
81
|
|
82
|
82
|
# TODO cropping and scaling not working for GIF animations
|
83
|
83
|
|
84
|
|
- print(p, self.image.width, self.image.height, self.image.is_animated, self.image.n_frames)
|
|
84
|
+ print(p, self.image.width, self.image.height, self.image.is_animated, self.image.n_frames, nearest)
|
85
|
85
|
|
86
|
86
|
self.xOff = int((self.gui.width - self.image.width) / 2)
|
87
|
87
|
self.yOff = int((self.gui.height - self.image.height) / 2)
|
|
@@ -143,7 +143,7 @@ if __name__ == "__main__":
|
143
|
143
|
t = util.getTarget(i)
|
144
|
144
|
|
145
|
145
|
from manager import Manager
|
146
|
|
- m = Manager(t, i)
|
|
146
|
+ m = Manager(t, i, 1)
|
147
|
147
|
|
148
|
148
|
scriptDir = os.path.dirname(os.path.realpath(__file__))
|
149
|
149
|
imageDir = os.path.join(scriptDir, "images")
|
|
@@ -154,8 +154,10 @@ if __name__ == "__main__":
|
154
|
154
|
if not sys.argv[1] in filename:
|
155
|
155
|
continue
|
156
|
156
|
|
157
|
|
- d = ImageScreen(t, filename)
|
158
|
|
- m.add(d)
|
|
157
|
+ for i in range(0, 2):
|
|
158
|
+ nearest = (i == 1)
|
|
159
|
+ d = ImageScreen(t, filename, 0.2, 1, 2.5, None, None, nearest)
|
|
160
|
+ m.add(d)
|
159
|
161
|
|
160
|
162
|
if filename != "camp23.png":
|
161
|
163
|
continue
|