mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-06 13:29:48 -05:00
Add prototypes warnings, use -fvisibility.
This commit is contained in:
parent
f099fd24a3
commit
b7a01928be
9 changed files with 79 additions and 55 deletions
8
window.c
8
window.c
|
|
@ -197,6 +197,10 @@ draw_window(void *data)
|
|||
wl_surface_attach(window->surface, buffer->name,
|
||||
buffer->width, buffer->height, buffer->stride);
|
||||
|
||||
wl_surface_map(window->surface,
|
||||
window->x, window->y,
|
||||
buffer->width, buffer->height);
|
||||
|
||||
/* FIXME: Free window->buffer when we receive the ack event. */
|
||||
|
||||
buffer = window->egl_buffer;
|
||||
|
|
@ -205,10 +209,6 @@ draw_window(void *data)
|
|||
buffer->name, buffer->stride,
|
||||
0, 0, buffer->width, buffer->height);
|
||||
|
||||
wl_surface_map(window->surface,
|
||||
window->x, window->y,
|
||||
buffer->width, buffer->height);
|
||||
|
||||
window->redraw_scheduled = 0;
|
||||
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue