gimp r26175 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26175 - in trunk: . app/display
- Date: Sun, 13 Jul 2008 12:22:10 +0000 (UTC)
Author: martinn
Date: Sun Jul 13 12:22:10 2008
New Revision: 26175
URL: http://svn.gnome.org/viewvc/gimp?rev=26175&view=rev
Log:
2008-07-13  Martin Nordholts  <martinn svn gnome org>
	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_setup_hscrollbar_with_value)
	(gimp_display_shell_setup_vscrollbar_with_value): Use
	gimp_display_shell_get_scaled_image_size() instead of inaccurately
	calculate that information locally.
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 Jul 13 12:22:10 2008
@@ -374,7 +374,7 @@
       ! shell->display->image)
     return;
 
-  sw = SCALEX (shell, gimp_image_get_width (shell->display->image));
+  gimp_display_shell_get_scaled_image_size (shell, &sw, NULL);
 
   if (shell->disp_width < sw)
     {
@@ -414,7 +414,7 @@
       ! shell->display->image)
     return;
 
-  sh = SCALEY (shell, gimp_image_get_height (shell->display->image));
+  gimp_display_shell_get_scaled_image_size (shell, NULL, &sh);
 
   if (shell->disp_height < sh)
     {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]