summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-11-07 12:06:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-07 12:07:12 +1000
commit6d16cb0164585662b15e616acd95518885be5274 (patch)
tree247a8d5ca323aea8928b502baae5267f93b3467d
parenta88e4bef2a63a919961a56d287d4dcabc77125b2 (diff)
Color the main window area grey
After the first touch anyway, not sure why it isn't to begin with. In preparation for another sidebar and BlackPixel/WhitePixel are just easier to handle than colors in xlib. so make the main drawing area another color. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--multitouch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/multitouch.c b/multitouch.c
index e7fc0fd..743ca96 100644
--- a/multitouch.c
+++ b/multitouch.c
@@ -23,7 +23,7 @@
static void usage(void)
{
printf("Usage:\n");
- printf(" White window: normal touch surface\n");
+ printf(" Grey window: normal touch surface\n");
printf(" Black bar left: grabs the touchpoint, no ownership\n");
}
@@ -423,7 +423,7 @@ static int init_cairo(struct multitouch *mt)
return error("Failed to create cairo context\n");
cairo_set_line_width(cr, 1);
- cairo_set_source_rgb(cr, 1, 1, 1);
+ cairo_set_source_rgb(cr, .85, .85, .85);
cairo_rectangle(cr, 0, 0, mt->width, mt->height);
cairo_fill(cr);