mirror of https://github.com/GNOME/gimp.git
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:
parent
ba5661b443
commit
eeed0029bf
|
@ -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>
|
||||
|
||||
* app/display/gimpdisplayshell-scale.[ch]
|
||||
|
|
|
@ -162,11 +162,15 @@ gimp_display_shell_scale_setup (GimpDisplayShell *shell)
|
|||
|
||||
if (image)
|
||||
{
|
||||
horizontal_upper = img2real (shell, TRUE, FUNSCALEX (shell, shell->disp_width));
|
||||
horizontal_max_size = img2real (shell, TRUE, MAX (image_width, image_height));
|
||||
horizontal_upper = img2real (shell, TRUE,
|
||||
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_max_size = img2real (shell, FALSE, MAX (image_width, image_height));
|
||||
vertical_upper = img2real (shell, FALSE,
|
||||
FUNSCALEY (shell, shell->disp_height));
|
||||
vertical_max_size = img2real (shell, FALSE,
|
||||
MAX (image_width, image_height));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -185,14 +189,18 @@ gimp_display_shell_scale_setup (GimpDisplayShell *shell)
|
|||
&scaled_image_viewport_offset_y);
|
||||
|
||||
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,
|
||||
FUNSCALEX (shell, (gdouble) scaled_image_viewport_offset_x));
|
||||
FUNSCALEX (shell,
|
||||
(gdouble) scaled_image_viewport_offset_x));
|
||||
|
||||
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,
|
||||
FUNSCALEY (shell, (gdouble) scaled_image_viewport_offset_y));
|
||||
FUNSCALEY (shell,
|
||||
(gdouble) scaled_image_viewport_offset_y));
|
||||
|
||||
|
||||
/* Finally setup the actual rulers */
|
||||
|
|
Loading…
Reference in New Issue