Commit a4f2a2d3 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

show the alpha value in percent as well (as suggested in bug #116384).

2003-07-08  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcolorpickertool.c: show the alpha value in percent
	as well (as suggested in bug #116384).
parent 840d060b
2003-07-08 Sven Neumann <sven@gimp.org>
* app/tools/gimpcolorpickertool.c: show the alpha value in percent
as well (as suggested in bug #116384).
2003-07-07 Sven Neumann <sven@gimp.org>
* libgimpmath/gimpmatrix.[ch]: added gimp_matrix2_mult().
......@@ -83,7 +83,7 @@ static GtkWidget *color_area = NULL;
static gchar red_buf [MAX_INFO_BUF];
static gchar green_buf[MAX_INFO_BUF];
static gchar blue_buf [MAX_INFO_BUF];
static gchar alpha_buf[MAX_INFO_BUF];
static gchar alpha_buf[3 * MAX_INFO_BUF];
static gchar index_buf[MAX_INFO_BUF];
static gchar hex_buf [MAX_INFO_BUF];
......@@ -357,7 +357,8 @@ gimp_color_picker_tool_info_update (GimpImageType sample_type,
g_snprintf (blue_buf, MAX_INFO_BUF, "%d", b);
if (GIMP_IMAGE_TYPE_HAS_ALPHA (sample_type))
g_snprintf (alpha_buf, MAX_INFO_BUF, "%d", a);
g_snprintf (alpha_buf, sizeof (alpha_buf),
"%d (%d %%)", a, (gint) (color->a * 100.0));
else
g_snprintf (alpha_buf, MAX_INFO_BUF, _("N/A"));
......
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