summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-12-08 21:31:25 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-12-08 21:31:25 -0500
commit58b172153a94061d1f6b5c781980d6347e7a9359 (patch)
tree114d50507d477ed600f125cbb6fdf670b7d81e53
parent7a66f127e6c9bd9ad16045fe62e5214745961c7e (diff)
Add border
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index e91bbc2..a87c2ee 100644
--- a/main.c
+++ b/main.c
@@ -83,6 +83,13 @@ main ()
ws_window_copy_from_image (window, image, 0, 0, 0, h - 20, w, 20);
pixman_image_unref (image);
+ image = pixman_image_create_solid_fill (&bg);
+ ws_window_copy_from_image (window, image, 0, 0, 0, 0, 1, h);
+ ws_window_copy_from_image (window, image, 0, 0, w - 1, 0, 1, h);
+ ws_window_copy_from_image (window, image, 0, 0, 0, 0, w, 1);
+ ws_window_copy_from_image (window, image, 0, 0, 0, h - 1, w, 1);
+ pixman_image_unref (image);
+
ws_window_resize (window, 700, 700);
ws_window_move (window, 600, 200);