diff options
author | Phil Jones <philj56@gmail.com> | 2021-11-14 23:37:16 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-11-14 23:37:16 +0000 |
commit | d65bdf025f9685f3b332aefffe6f8b5c8dbe8827 (patch) | |
tree | 083d90d95e6c103b5c6967fe3ff496ad79a46992 /src/surface.c | |
parent | 929bca3f70c6406e7edbaf42804d8e1d1d9958e2 (diff) |
Initial experiments with layer shell.
Diffstat (limited to 'src/surface.c')
-rw-r--r-- | src/surface.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/surface.c b/src/surface.c index 700074c..cbc6c94 100644 --- a/src/surface.c +++ b/src/surface.c @@ -30,6 +30,12 @@ void surface_draw( struct color *color, struct image *texture) { + wl_egl_window_resize( + surface->egl.window, + surface->width, + surface->height, + 0, + 0); egl_make_current(&surface->egl); gl_clear(&surface->gl, color); @@ -46,5 +52,7 @@ void surface_draw( gl_draw_texture(&surface->gl, texture, x, y, width, height); } + wl_surface_damage_buffer(surface->wl_surface, 0, 0, INT32_MAX, INT32_MAX); + egl_swap_buffers(&surface->egl); } |