mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] wayland: Let viewporter use full wl_buffer
This commit is contained in:
parent
e70718600c
commit
a626a1142d
1
AUTHORS
1
AUTHORS
@ -67,3 +67,4 @@ Daniel Cordero <looking-glass@0xdc.io> (0xdc)
|
|||||||
esi <git@esibun.net> (esibun)
|
esi <git@esibun.net> (esibun)
|
||||||
MakiseKurisu <saberconer@gmail.com> (MakiseKurisu)
|
MakiseKurisu <saberconer@gmail.com> (MakiseKurisu)
|
||||||
Zenithal <i@zenithal.me> (ZenithalHourlyRate)
|
Zenithal <i@zenithal.me> (ZenithalHourlyRate)
|
||||||
|
Kamplom <6284968128@protonmail.ch> (kamplom)
|
||||||
|
@ -102,7 +102,11 @@ void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface, const struct
|
|||||||
wl_surface_set_buffer_scale(wlWm.surface, 1);
|
wl_surface_set_buffer_scale(wlWm.surface, 1);
|
||||||
if (!wlWm.viewport)
|
if (!wlWm.viewport)
|
||||||
wlWm.viewport = wp_viewporter_get_viewport(wlWm.viewporter, wlWm.surface);
|
wlWm.viewport = wp_viewporter_get_viewport(wlWm.viewporter, wlWm.surface);
|
||||||
wp_viewport_set_source(wlWm.viewport, 0, 0, width * wlWm.scale, height * wlWm.scale);
|
wp_viewport_set_source(
|
||||||
|
wlWm.viewport,
|
||||||
|
wl_fixed_from_int(-1), wl_fixed_from_int(-1),
|
||||||
|
wl_fixed_from_int(-1), wl_fixed_from_int(-1)
|
||||||
|
);
|
||||||
wp_viewport_set_destination(wlWm.viewport, width, height);
|
wp_viewport_set_destination(wlWm.viewport, width, height);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user