mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-06 13:29:48 -05:00
Use FBOs instead of eagle-specific API
This commit is contained in:
parent
450cc8136d
commit
a341fa016c
7 changed files with 127 additions and 129 deletions
12
image.c
12
image.c
|
|
@ -184,7 +184,7 @@ image_draw(struct image *image)
|
|||
&rectangle,
|
||||
image->surface);
|
||||
|
||||
wl_compositor_commit(image->compositor, image->key);
|
||||
window_commit(image->window, image->key);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
@ -216,6 +216,15 @@ resize_handler(struct window *window, void *data)
|
|||
image_schedule_redraw(image);
|
||||
}
|
||||
|
||||
static void
|
||||
keyboard_focus_handler(struct window *window,
|
||||
struct wl_input_device *device, void *data)
|
||||
{
|
||||
struct image *image = data;
|
||||
|
||||
image_schedule_redraw(image);
|
||||
}
|
||||
|
||||
static void
|
||||
handle_acknowledge(void *data,
|
||||
struct wl_compositor *compositor,
|
||||
|
|
@ -274,6 +283,7 @@ image_create(struct display *display, uint32_t key, const char *filename)
|
|||
|
||||
image->compositor = display_get_compositor(display);
|
||||
window_set_resize_handler(image->window, resize_handler, image);
|
||||
window_set_keyboard_focus_handler(image->window, keyboard_focus_handler, image);
|
||||
|
||||
wl_compositor_add_listener(image->compositor, &compositor_listener, image);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue