summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 16:29:21 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 16:29:21 +0200
commit63a030a0d65f4ab77a2cbc138eaf5782e276e290 (patch)
treeb161f6a30fc2505567f9174887a03b3c2c772bda /tools
parentc48496b50a72575438f87da69080a48e0878a121 (diff)
downloaduca-63a030a0d65f4ab77a2cbc138eaf5782e276e290.tar.gz
uca-63a030a0d65f4ab77a2cbc138eaf5782e276e290.tar.bz2
uca-63a030a0d65f4ab77a2cbc138eaf5782e276e290.tar.xz
uca-63a030a0d65f4ab77a2cbc138eaf5782e276e290.zip
Accept anything else than 8 bit as 16 bits
For now, there is no other possible format.
Diffstat (limited to 'tools')
-rw-r--r--tools/gui/egg-histogram-view.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/gui/egg-histogram-view.c b/tools/gui/egg-histogram-view.c
index 91e61e8..5041ba2 100644
--- a/tools/gui/egg-histogram-view.c
+++ b/tools/gui/egg-histogram-view.c
@@ -143,7 +143,7 @@ compute_histogram (EggHistogramViewPrivate *priv)
}
}
}
- else if (priv->n_bits == 16) {
+ else {
guint16 *data = (guint16 *) priv->data;
for (guint i = 0; i < priv->n_elements; i++) {
@@ -155,8 +155,6 @@ compute_histogram (EggHistogramViewPrivate *priv)
}
}
}
- else
- g_warning ("%i number of bits unsupported", priv->n_bits);
}
static void