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:

committed by
Sven Neumann

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>
|
2008-07-13 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
* app/display/gimpdisplayshell-scale.[ch]
|
* app/display/gimpdisplayshell-scale.[ch]
|
||||||
|
@ -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 */
|
||||||
|
Reference in New Issue
Block a user