mirror of https://github.com/GNOME/gimp.git
take margin into account when deciding if popping up a preview is
* app/brush_select.c: take margin into account when deciding if popping up a preview is necessary --Sven
This commit is contained in:
parent
69bc75b042
commit
cd65099a2a
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 9 22:57:13 MET 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/brush_select.c: take margin into account when deciding if
|
||||
popping up a preview is necessary
|
||||
|
||||
Tue Nov 9 21:15:26 GMT 1999 Andy Thomas <alt@gimp.org>
|
||||
|
||||
* app/lc_dialog.c
|
||||
|
|
|
@ -1556,8 +1556,8 @@ brush_select_events (GtkWidget *widget,
|
|||
}
|
||||
|
||||
/* Show the brush popup window if the brush is too large */
|
||||
if (brush->mask->width > bsp->cell_width ||
|
||||
brush->mask->height > bsp->cell_height ||
|
||||
if (brush->mask->width > bsp->cell_width - 2 * MARGIN_WIDTH ||
|
||||
brush->mask->height > bsp->cell_height - 2 * MARGIN_HEIGHT ||
|
||||
GIMP_IS_REALLY_A_BRUSH_PIPE (brush))
|
||||
{
|
||||
brush_popup_open (bsp, bevent->x, bevent->y, brush);
|
||||
|
|
|
@ -1556,8 +1556,8 @@ brush_select_events (GtkWidget *widget,
|
|||
}
|
||||
|
||||
/* Show the brush popup window if the brush is too large */
|
||||
if (brush->mask->width > bsp->cell_width ||
|
||||
brush->mask->height > bsp->cell_height ||
|
||||
if (brush->mask->width > bsp->cell_width - 2 * MARGIN_WIDTH ||
|
||||
brush->mask->height > bsp->cell_height - 2 * MARGIN_HEIGHT ||
|
||||
GIMP_IS_REALLY_A_BRUSH_PIPE (brush))
|
||||
{
|
||||
brush_popup_open (bsp, bevent->x, bevent->y, brush);
|
||||
|
|
Loading…
Reference in New Issue