return an odd preview height to make the border align with the pixel grid.

* app/core/gimppalette.c (gimp_palette_get_preview_size): return
	an odd preview height to make the border align with the pixel 
grid.


svn path=/trunk/; revision=24057
This commit is contained in:
Sven Neumann
2007-11-04 19:46:35 +00:00
parent fa7e312a2c
commit 7218ee5d25
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@
* app/widgets/gimprender.c: removed gimp_render_temp_buf; it is
not any longer needed.
* app/core/gimpgradient.c (gimp_gradient_get_preview_size): return
* app/core/gimpgradient.c (gimp_gradient_get_preview_size)
* app/core/gimppalette.c (gimp_palette_get_preview_size): return
an odd preview height to make the border align with the pixel grid.
2007-11-04 Sven Neumann <sven@gimp.org>

View File

@ -147,7 +147,7 @@ gimp_palette_get_preview_size (GimpViewable *viewable,
gint *height)
{
*width = size;
*height = size / 2;
*height = 1 + size / 2;
}
static gboolean