Commit 46df3df7 authored by CDT 1998  Larry Ewing's avatar CDT 1998 Larry Ewing Committed by Larry Ewing
Browse files

added a case for FOREGROUND_FILL. Fixes the layer new dialog so that it

Tue Jul 28 14:14:43 CDT 1998  Larry Ewing  <lewing@gimp.org>

	* app/drawable.c (drawable_fill): added a case for
	FOREGROUND_FILL.  Fixes the layer new dialog so that it actually
	works with foreground fill selected.
parent bea11fc6
Tue Jul 28 14:14:43 CDT 1998 Larry Ewing <lewing@gimp.org>
* app/drawable.c (drawable_fill): added a case for
FOREGROUND_FILL. Fixes the layer new dialog so that it actually
works with foreground fill selected.
1998-07-28 Tuomas Kuosmanen <tigert@gimp.org>
* app/file_new_dialog.c
......
......@@ -35,17 +35,29 @@ drawable_fill (GimpDrawable *drawable, int fill_type){
guchar r,g,b,a;
a=255;
switch(fill_type){
case FOREGROUND_FILL:
palette_get_foreground(&r, &g, &b);
break;
case BACKGROUND_FILL:
palette_get_background(&r, &g, &b);
break;
palette_get_background(&r, &g, &b);
break;
case WHITE_FILL:
r=g=b=255;
break;
r=g=b=255;
break;
case TRANSPARENT_FILL:
a=r=g=b=0;
break;
a=r=g=b=0;
break;
case NO_FILL:
return;
return;
default:
g_warning ("drawable_fill called with unknown fill type");
a=r=g=b=0;
break;
}
gimp_drawable_fill(drawable,r,g,b,a);
drawable_update (drawable, 0, 0,
......
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