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:

committed by
Michael Natterer

parent
bc03eded44
commit
fb6a3a0eca
@ -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
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user