New function.
2008-08-14 Martin Nordholts <martinn@svn.gnome.org> * app/display/gimpdisplayshell-draw.[ch] (gimp_display_shell_draw_get_scaled_image_size_for_scale): New function. * app/display/gimpdisplayshell-scale.[ch] (gimp_display_shell_scale): When zooming out and the image starts to fit the viewport on a given axis, center on that axis. (gimp_display_shell_scale_image_starts_to_fit): New function. (gimp_display_shell_calculate_scale_x_and_y): New function. * app/display/gimpdisplayshell.c (gimp_display_shell_scale_changed): Use gimp_display_shell_calculate_scale_x_and_y(). * app/display/gimpdisplayshell-scroll.c (gimp_display_shell_scroll_center_image): Bail out if neither vertical nor horizontal centering is requested. svn path=/trunk/; revision=26562
This commit is contained in:

committed by
Martin Nordholts

parent
0fe3208158
commit
c8ae8f67b4
@ -23,6 +23,11 @@
|
||||
void gimp_display_shell_draw_get_scaled_image_size (const GimpDisplayShell *shell,
|
||||
gint *w,
|
||||
gint *h);
|
||||
void gimp_display_shell_draw_get_scaled_image_size_for_scale
|
||||
(const GimpDisplayShell *shell,
|
||||
gdouble scale,
|
||||
gint *w,
|
||||
gint *h);
|
||||
void gimp_display_shell_draw_guide (const GimpDisplayShell *shell,
|
||||
GimpGuide *guide,
|
||||
gboolean active);
|
||||
|
Reference in New Issue
Block a user