- load palette from png
[enigma2.git] / lib / gdi / gpixmap.cpp
index e9c469c425714241441a5ad7717b3754e4887ce6..9e8219a5e588caeae6e11b6938722a9c38895ca1 100644 (file)
@@ -388,6 +388,8 @@ gColor gPalette::findColor(const gRGB &rgb) const
                ttd+=td;
                if (ttd>=difference)
                        continue;
+               if (!ttd)
+                       return t;
                difference=ttd;
                best_choice=t;
        }