From a9dbf044231cd168246df34a23dc28d1dc57a430 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 11 Feb 2009 15:48:16 +0000 Subject: Keep keyframes on screen after decreased screen resolution --- diff --git a/montage.py b/montage.py index a0c0e86..b2d8030 100644 --- a/montage.py +++ b/montage.py @@ -112,12 +112,18 @@ class View(gtk.EventBox): model.screen_shot(pixbuf) + def restore(self): + # keep keyframes on screen after decreasing screen resolution + for i in model.keys: + if i.x >= KEYFRAMEWIDTH-KEYFRAME_RADIUS: + i.move(KEYFRAMEWIDTH-KEYFRAME_RADIUS - i.x) + if i.middle[0] >= DRAWWIDTH or i.middle[1] >= DRAWHEIGHT: + tmp = screen.ScreenFrame() + i.middle = (DRAWWIDTH/2, DRAWHEIGHT/3) + tmp.assign(i) + i.assign(tmp) - - - - def restore(self): self.drawkeyframe() self.syncmaintokf() self.updateentrybox() -- cgit v0.9.1