make the scale factor of the label 4/5 instead of 2/3 of the canvas and

2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): make the
	scale factor of the label 4/5 instead of 2/3 of the canvas and
	move the factor out of the MIN().


svn path=/trunk/; revision=25132
This commit is contained in:
Michael Natterer
2008-03-19 20:37:45 +00:00
committed by Michael Natterer
parent bc03eded44
commit fb6a3a0eca
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-03-19 Michael Natterer <mitch@gimp.org>
* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): make the
scale factor of the label 4/5 instead of 2/3 of the canvas and
move the factor out of the MIN().
2008-03-19 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplay-foreach.[ch] (gimp_displays_delete): add

View File

@ -853,8 +853,8 @@ gimp_canvas_draw_drop_zone (GimpCanvas *canvas,
pango_layout_get_pixel_size (canvas->drop_zone_layout, &width, &height);
factor = MIN (2.0 / 3.0 * widget->allocation.width / width,
2.0 / 3.0 * widget->allocation.height / height);
factor = 4.0 / 5.0 * MIN ((gdouble) widget->allocation.width / width,
(gdouble) widget->allocation.height / height);
cairo_scale (cr, factor, factor);
cairo_move_to (cr,