Renamed the variales sx and sy to sw and sh.

2008-07-05  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_clamp_offsets): Renamed the variales sx
	and sy to sw and sh.

svn path=/trunk/; revision=26070
This commit is contained in:
Martin Nordholts
2008-07-05 15:43:39 +00:00
committed by Martin Nordholts
parent 1e04306e45
commit 3a879e7bdf
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2008-07-05 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-scroll.c
(gimp_display_shell_scroll_clamp_offsets): Renamed the variales sx
and sy to sw and sh.
2008-07-05 Sven Neumann <sven@gimp.org> 2008-07-05 Sven Neumann <sven@gimp.org>
* app/widgets/gimphelp.c (gimp_help_user_manual_is_installed): * app/widgets/gimphelp.c (gimp_help_user_manual_is_installed):

View File

@ -94,16 +94,16 @@ gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell)
if (shell->display->image) if (shell->display->image)
{ {
gint sx, sy; gint sw, sh;
sx = SCALEX (shell, gimp_image_get_width (shell->display->image)); sw = SCALEX (shell, gimp_image_get_width (shell->display->image));
sy = SCALEY (shell, gimp_image_get_height (shell->display->image)); sh = SCALEY (shell, gimp_image_get_height (shell->display->image));
shell->offset_x = CLAMP (shell->offset_x, 0, shell->offset_x = CLAMP (shell->offset_x, 0,
MAX (sx - shell->disp_width, 0)); MAX (sw - shell->disp_width, 0));
shell->offset_y = CLAMP (shell->offset_y, 0, shell->offset_y = CLAMP (shell->offset_y, 0,
MAX (sy - shell->disp_height, 0)); MAX (sh - shell->disp_height, 0));
} }
else else
{ {