summaryrefslogtreecommitdiffstats
path: root/base/gfx/gtk_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/gtk_util.h')
-rw-r--r--base/gfx/gtk_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h
index c219dab..523f7bf 100644
--- a/base/gfx/gtk_util.h
+++ b/base/gfx/gtk_util.h
@@ -18,10 +18,13 @@ typedef struct _GdkRegion GdkRegion;
class SkBitmap;
+const int kSkiaToGDKMultiplier = 257;
+
// Define a macro for creating GdkColors from RGB values. This is a macro to
// allow static construction of literals, etc. Use this like:
// GdkColor white = GDK_COLOR_RGB(0xff, 0xff, 0xff);
-#define GDK_COLOR_RGB(r, g, b) {0, r * 257, g * 257, b * 257}
+#define GDK_COLOR_RGB(r, g, b) {0, r * kSkiaToGDKMultiplier, \
+ g * kSkiaToGDKMultiplier, b * kSkiaToGDKMultiplier}
namespace gfx {