[Xfce4-commits] <ristretto:master> Cleanup code a little
Stephan Arts
noreply at xfce.org
Sun Jan 22 15:36:02 CET 2012
Updating branch refs/heads/master
to e3c3ad95b1c5e9fc845ad21d16a52546b944aef4 (commit)
from 82c4753a8f4d578b06451260ca64762782cd298f (commit)
commit e3c3ad95b1c5e9fc845ad21d16a52546b944aef4
Author: Stephan Arts <stephan at xfce.org>
Date: Sun Jan 22 15:33:19 2012 +0100
Cleanup code a little
src/image_viewer.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/image_viewer.c b/src/image_viewer.c
index 1be5c3a..3be326b 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1071,8 +1071,8 @@ paint_image (
-1.0 * viewer->priv->image_height * viewer->priv->scale);
cairo_translate (
ctx,
- viewer->priv->rendering.y_offset,
- -1.0 * viewer->priv->rendering.x_offset);
+ y_offset,
+ -1.0 * x_offset);
break;
case RSTTO_IMAGE_ORIENT_270:
cairo_rotate (
@@ -1089,8 +1089,8 @@ paint_image (
cairo_translate (
ctx,
- -1.0 * viewer->priv->rendering.y_offset,
- viewer->priv->rendering.x_offset);
+ -1.0 * y_offset,
+ x_offset);
break;
case RSTTO_IMAGE_ORIENT_180:
cairo_rotate (
@@ -1107,8 +1107,8 @@ paint_image (
cairo_translate (
ctx,
- -1.0 * viewer->priv->rendering.x_offset,
- -1.0 * viewer->priv->rendering.y_offset);
+ -1.0 * x_offset,
+ -1.0 * y_offset);
break;
case RSTTO_IMAGE_ORIENT_NONE:
default:
@@ -1119,8 +1119,8 @@ paint_image (
cairo_translate (
ctx,
- viewer->priv->rendering.x_offset,
- viewer->priv->rendering.y_offset);
+ x_offset,
+ y_offset);
break;
}
More information about the Xfce4-commits
mailing list