mirror of https://github.com/encounter/SDL.git
Patched to compile on C89 compilers.
This commit is contained in:
parent
8da7e8adc9
commit
88e85f4ddd
|
@ -199,6 +199,7 @@ static const struct wl_output_listener output_listener = {
|
||||||
static void
|
static void
|
||||||
Wayland_add_display(SDL_VideoData *d, uint32_t id)
|
Wayland_add_display(SDL_VideoData *d, uint32_t id)
|
||||||
{
|
{
|
||||||
|
struct wl_output *output;
|
||||||
SDL_VideoDisplay *display = SDL_malloc(sizeof *display);
|
SDL_VideoDisplay *display = SDL_malloc(sizeof *display);
|
||||||
if (!display) {
|
if (!display) {
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
|
@ -206,7 +207,7 @@ Wayland_add_display(SDL_VideoData *d, uint32_t id)
|
||||||
}
|
}
|
||||||
SDL_zero(*display);
|
SDL_zero(*display);
|
||||||
|
|
||||||
struct wl_output *output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
|
output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
|
||||||
if (!output) {
|
if (!output) {
|
||||||
SDL_SetError("Failed to retrieve output.");
|
SDL_SetError("Failed to retrieve output.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue