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:
@ -15,7 +15,8 @@
|
|||||||
* app/widgets/gimprender.c: removed gimp_render_temp_buf; it is
|
* app/widgets/gimprender.c: removed gimp_render_temp_buf; it is
|
||||||
not any longer needed.
|
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.
|
an odd preview height to make the border align with the pixel grid.
|
||||||
|
|
||||||
2007-11-04 Sven Neumann <sven@gimp.org>
|
2007-11-04 Sven Neumann <sven@gimp.org>
|
||||||
|
@ -147,7 +147,7 @@ gimp_palette_get_preview_size (GimpViewable *viewable,
|
|||||||
gint *height)
|
gint *height)
|
||||||
{
|
{
|
||||||
*width = size;
|
*width = size;
|
||||||
*height = size / 2;
|
*height = 1 + size / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Reference in New Issue
Block a user