added some line breaks to improve readability.

2008-07-14  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): added some line breaks to
	improve readability.


svn path=/trunk/; revision=26187
This commit is contained in:
Sven Neumann
2008-07-14 09:41:16 +00:00
committed by Sven Neumann
parent ba5661b443
commit eeed0029bf
2 changed files with 22 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2008-07-14 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-scale.c
(gimp_display_shell_scale_setup): added some line breaks to
improve readability.
2008-07-13 Martin Nordholts <martinn@svn.gnome.org> 2008-07-13 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-scale.[ch] * app/display/gimpdisplayshell-scale.[ch]

View File

@ -162,11 +162,15 @@ gimp_display_shell_scale_setup (GimpDisplayShell *shell)
if (image) if (image)
{ {
horizontal_upper = img2real (shell, TRUE, FUNSCALEX (shell, shell->disp_width)); horizontal_upper = img2real (shell, TRUE,
horizontal_max_size = img2real (shell, TRUE, MAX (image_width, image_height)); FUNSCALEX (shell, shell->disp_width));
horizontal_max_size = img2real (shell, TRUE,
MAX (image_width, image_height));
vertical_upper = img2real (shell, FALSE, FUNSCALEY (shell, shell->disp_height)); vertical_upper = img2real (shell, FALSE,
vertical_max_size = img2real (shell, FALSE, MAX (image_width, image_height)); FUNSCALEY (shell, shell->disp_height));
vertical_max_size = img2real (shell, FALSE,
MAX (image_width, image_height));
} }
else else
{ {
@ -185,14 +189,18 @@ gimp_display_shell_scale_setup (GimpDisplayShell *shell)
&scaled_image_viewport_offset_y); &scaled_image_viewport_offset_y);
horizontal_lower -= img2real (shell, TRUE, horizontal_lower -= img2real (shell, TRUE,
FUNSCALEX (shell, (gdouble) scaled_image_viewport_offset_x)); FUNSCALEX (shell,
(gdouble) scaled_image_viewport_offset_x));
horizontal_upper -= img2real (shell, TRUE, horizontal_upper -= img2real (shell, TRUE,
FUNSCALEX (shell, (gdouble) scaled_image_viewport_offset_x)); FUNSCALEX (shell,
(gdouble) scaled_image_viewport_offset_x));
vertical_lower -= img2real (shell, FALSE, vertical_lower -= img2real (shell, FALSE,
FUNSCALEY (shell, (gdouble) scaled_image_viewport_offset_y)); FUNSCALEY (shell,
(gdouble) scaled_image_viewport_offset_y));
vertical_upper -= img2real (shell, FALSE, vertical_upper -= img2real (shell, FALSE,
FUNSCALEY (shell, (gdouble) scaled_image_viewport_offset_y)); FUNSCALEY (shell,
(gdouble) scaled_image_viewport_offset_y));
/* Finally setup the actual rulers */ /* Finally setup the actual rulers */