mirror of https://github.com/snes9xgit/snes9x.git
Request compositor protocol v3. Set buffer scale.
This commit is contained in:
parent
58e04558c6
commit
32633bd664
|
@ -12,7 +12,7 @@ static void wl_global (void *data,
|
||||||
struct wlgl_helper *wl = (struct wlgl_helper *) data;
|
struct wlgl_helper *wl = (struct wlgl_helper *) data;
|
||||||
|
|
||||||
if (!strcmp (interface, "wl_compositor"))
|
if (!strcmp (interface, "wl_compositor"))
|
||||||
wl->compositor = (struct wl_compositor *) wl_registry_bind (wl_registry, name, &wl_compositor_interface, 1);
|
wl->compositor = (struct wl_compositor *) wl_registry_bind (wl_registry, name, &wl_compositor_interface, 3);
|
||||||
else if (!strcmp (interface, "wl_subcompositor"))
|
else if (!strcmp (interface, "wl_subcompositor"))
|
||||||
wl->subcompositor = (struct wl_subcompositor *) wl_registry_bind (wl_registry, name, &wl_subcompositor_interface, 1);
|
wl->subcompositor = (struct wl_subcompositor *) wl_registry_bind (wl_registry, name, &wl_subcompositor_interface, 1);
|
||||||
}
|
}
|
||||||
|
@ -150,6 +150,8 @@ bool wlgl_helper::create_egl_context (int width, int height)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wl_surface_set_buffer_scale (child, scale);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue