[mythtv-users] singleview.cpp patch
jose rubio
debian at nc.rr.com
Sun Sep 21 08:18:58 EDT 2003
On Sat, 2003-09-20 at 22:59, Isaac Richards wrote:
> On Saturday 20 September 2003 04:15 pm, jose rubio wrote:
> > Ok, I think I've got it... maybe.
> > The problem is that when viewing a picture, then you zoom in, then you
> > either rotate or switch to another picture and zoom in again, the
> > program incorrectly would remember the old zoom level.
> >
> > Here's the patch I came out with:
>
> Mind regenerating that with 'diff -u' so that it's readable?
>
> Isaac
Sorry, here it is
-jose-
-------------- next part --------------
--- mythgallery/mythgallery/singleview.cpp Sat Sep 20 15:22:39 2003
+++ mythgallery/mythgallery/singleview.cpp.new Sat Sep 20 16:09:37 2003
@@ -182,7 +182,7 @@
rotateAngle += 90;
handled = true;
redraw = true;
- newzoom = 0;
+ newzoom = 1;
break;
}
case '[': case Key_1:
@@ -190,7 +190,7 @@
rotateAngle -= 90;
handled = true;
redraw = true;
- newzoom = 0;
+ newzoom = 1;
break;
}
case Key_Left:
@@ -229,7 +229,7 @@
case Key_7: // zoom out
{
handled = zoomfactor;
- newzoom = (zoomfactor < 2) ? zoomfactor : (zoomfactor / 2);
+ newzoom = (zoomfactor < 1) ? zoomfactor : (zoomfactor / 2);
break;
}
case Key_9: // zoom in
@@ -277,7 +277,7 @@
case Key_0: // fullsize
{
handled = zoomfactor;
- newzoom = 0;
+ newzoom = 1;
break;
}
case Key_PageUp: // upper left corner
More information about the mythtv-users
mailing list