Commit b055ca66 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

declare mindistbg, mindistfg, and alpha float variables at the start of

2005-10-17  Manish Singh  <yosh@gimp.org>

        * app/base/siox.c (siox_drb): declare mindistbg, mindistfg, and alpha
        float variables at the start of the block.
parent 78ff1a89
2005-10-17 Manish Singh <yosh@gimp.org>
* app/base/siox.c (siox_drb): declare mindistbg, mindistfg, and alpha
float variables at the start of the block.
2005-10-17 Sven Neumann <sven@gimp.org>
* app/base/base-enums.h
......
......@@ -1125,6 +1125,9 @@ siox_drb (SioxState *state,
{
gint key;
classresult *cr;
gfloat mindistbg;
gfloat mindistfg;
gfloat alpha;
key = create_key (s, state->bpp, state->colormap);
cr = g_hash_table_lookup (state->cache, GINT_TO_POINTER (key));
......@@ -1133,9 +1136,8 @@ siox_drb (SioxState *state,
continue; /* Unknown color -
can only be sure background or sure forground */
gfloat mindistbg = (gfloat) sqrt (cr->bgdist);
gfloat mindistfg = (gfloat) sqrt (cr->fgdist);
gfloat alpha;
mindistbg = (gfloat) sqrt (cr->bgdist);
mindistfg = (gfloat) sqrt (cr->fgdist);
if (brushmode == SIOX_DRB_ADD)
{
......
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