Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1964)

Unified Diff: base/gfx/gtk_util.h

Issue 160188: GTK Themes: A gtkrc file can now override our choice of frame color by (Closed)
Patch Set: Make 257 a constant Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/gtk_util.h
diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h
index c219dabd857a170c037a38808ac5d2bb476cd52c..523f7bf974ca995b6473dd3aff48b1a1a23efa13 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 {
« no previous file with comments | « no previous file | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698