[babl] babl/babl-format: add formats with custom RGB spaces to format db
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl/babl-format: add formats with custom RGB spaces to format db
- Date: Wed, 30 Aug 2017 01:54:29 +0000 (UTC)
commit 0edab72ea31b8dc362855ca951a08e91ffd72f80
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Aug 29 23:27:45 2017 +0200
babl/babl-format: add formats with custom RGB spaces to format db
babl/babl-format.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/babl/babl-format.c b/babl/babl-format.c
index 6a7ebb2..0afba64 100644
--- a/babl/babl-format.c
+++ b/babl/babl-format.c
@@ -144,6 +144,8 @@ format_new_from_format_with_space (const Babl *format, const Babl *space)
(void*)babl_remodel_with_space (BABL(format->format.model), space),
space,
format->format.component, format->format.sampling, (void*)format->format.type);
+
+
return ret;
}
@@ -732,6 +734,7 @@ babl_format_with_space (const char *name, const Babl *space)
return ret;
ret = format_new_from_format_with_space (babl_format (name), space);
+ babl_db_insert (db, ret);
}
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]