[babl] babl: fix fix bpp initialization when loaded from cache
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: fix fix bpp initialization when loaded from cache
- Date: Thu, 27 Jan 2022 01:29:28 +0000 (UTC)
commit 76eb8ae3b8ad310e75bfded7c8c5f931169fafc8
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jan 27 02:29:15 2022 +0100
babl: fix fix bpp initialization when loaded from cache
babl/babl-cache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/babl/babl-cache.c b/babl/babl-cache.c
index b48249a66..a3bd8e094 100644
--- a/babl/babl-cache.c
+++ b/babl/babl-cache.c
@@ -347,7 +347,10 @@ babl_init_db (void)
else if (!strncmp (token2, "cost=", 5))
{
if (babl->class_type == BABL_FISH_PATH)
+ {
babl->fish_path.cost = babl_parse_double (token2 + 5);
+ _babl_fish_prepare_bpp (babl);
+ }
}
else if (!strncmp (token2, "pixels=", 7))
{
@@ -355,7 +358,6 @@ babl_init_db (void)
}
token2 = strtok_r (NULL, seps2, &tokp2);
}
- _babl_fish_prepare_bpp (babl);
}
else if (to_format && babl && babl->class_type == BABL_FISH_PATH)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]