Commit db3fd7b1 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

set the background using gimp_palette_get_background() in non-interactive

2000-12-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/MapObject/mapobject_image.c: set the background using
	gimp_palette_get_background() in non-interactive mode too.
parent 9f0e1d4c
2000-12-07 Sven Neumann <sven@gimp.org>
* plug-ins/MapObject/mapobject_image.c: set the background using
gimp_palette_get_background() in non-interactive mode too.
2000-12-03 Sven Neumann <sven@gimp.org>
 
* app/gimpimage.c: when merging layers, do not set the layer mode
......
......@@ -329,7 +329,8 @@ gint
image_setup (GimpDrawable *drawable,
gint interactive)
{
glong numbytes;
glong numbytes;
guchar r,g,b;
/* Set the tile cache size */
/* ======================= */
......@@ -354,6 +355,17 @@ image_setup (GimpDrawable *drawable,
maxcounter=(glong)width*(glong)height;
if (mapvals.transparent_background==TRUE)
gck_rgba_set(&background,0.0,0.0,0.0,0.0);
else
{
gimp_palette_get_background(&r,&g,&b);
background.r=(gdouble)r/255.0;
background.g=(gdouble)g/255.0;
background.b=(gdouble)b/255.0;
background.a=1.0;
}
/* Assume at least RGB */
/* =================== */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment