diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-12-08 21:31:25 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-12-08 21:31:25 -0500 |
commit | 58b172153a94061d1f6b5c781980d6347e7a9359 (patch) | |
tree | 114d50507d477ed600f125cbb6fdf670b7d81e53 | |
parent | 7a66f127e6c9bd9ad16045fe62e5214745961c7e (diff) |
Add border
-rw-r--r-- | main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |