[gdk-pixbuf] gdk-pixbuf: Add constant for "default fill"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] gdk-pixbuf: Add constant for "default fill"
- Date: Wed, 28 Dec 2016 15:47:00 +0000 (UTC)
commit 422817328f5c8190c7c727112e88ea453bf6be2b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 28 16:07:49 2016 +0100
gdk-pixbuf: Add constant for "default fill"
This colour should be used to complete truncated images, rather than
using random garbage from uninitialised memory.
https://bugzilla.gnome.org/show_bug.cgi?id=696331
gdk-pixbuf/gdk-pixbuf-private.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-private.h b/gdk-pixbuf/gdk-pixbuf-private.h
index 882a857..cd26895 100644
--- a/gdk-pixbuf/gdk-pixbuf-private.h
+++ b/gdk-pixbuf/gdk-pixbuf-private.h
@@ -52,6 +52,9 @@ typedef struct _GdkPixbufClass GdkPixbufClass;
#define DPM_TO_DPI(value) ((int) round ((value) * 25.4 / 1000))
#define DPCM_TO_DPI(value) ((int) round ((value) * 2.54))
+/* Default fill color */
+#define DEFAULT_FILL_COLOR 0x979899ff
+
/* Private part of the GdkPixbuf structure */
struct _GdkPixbuf {
GObject parent_instance;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]