gimp r26471 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26471 - in trunk: . app/display
- Date: Sun, 10 Aug 2008 07:26:36 +0000 (UTC)
Author: martinn
Date: Sun Aug 10 07:26:35 2008
New Revision: 26471
URL: http://svn.gnome.org/viewvc/gimp?rev=26471&view=rev
Log:
2008-08-10 Martin Nordholts <martinn svn gnome org>
* app/display/gimpdisplayshell-scroll.c
(gimp_display_shell_scroll_center_image): There is no need for
special casing depending on image size relative to viewport size.
Modified:
trunk/ChangeLog
trunk/app/display/gimpdisplayshell-scroll.c
Modified: trunk/app/display/gimpdisplayshell-scroll.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scroll.c (original)
+++ trunk/app/display/gimpdisplayshell-scroll.c Sun Aug 10 07:26:35 2008
@@ -233,26 +233,12 @@
if (horizontally)
{
- if (sw < shell->disp_width)
- {
- target_offset_x = -(shell->disp_width - sw) / 2;
- }
- else
- {
- target_offset_x = (sw - shell->disp_width) / 2;
- }
+ target_offset_x = (sw - shell->disp_width) / 2;
}
if (vertically)
{
- if (sh < shell->disp_height)
- {
- target_offset_y = -(shell->disp_height - sh) / 2;
- }
- else
- {
- target_offset_y = (sh - shell->disp_height) / 2;
- }
+ target_offset_y = (sh - shell->disp_height) / 2;
}
/* Note that we can't use gimp_display_shell_scroll_private() here
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]