screencopy: Actually use y-inversion flag

pixman-rendering
Andri Yngvason 2020-06-28 14:26:53 +00:00
parent dc568d14e8
commit 63d15d9fe8
1 changed files with 4 additions and 5 deletions

View File

@ -37,7 +37,6 @@
void screencopy_stop(struct screencopy* self)
{
aml_stop(aml_get_default(), self->timer);
self->status = SCREENCOPY_STOPPED;
@ -90,8 +89,6 @@ static void screencopy_buffer_done(void* data,
return;
}
buffer->y_inverted = !self->have_linux_dmabuf;
assert(!self->front);
self->front = buffer;
@ -127,8 +124,10 @@ static void screencopy_flags(void* data,
{
(void)frame;
// TODO
// self->buffer->y_inverted = !!(flags & ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT);
struct screencopy* self = data;
self->front->y_inverted =
!!(flags & ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT);
}
static void screencopy_ready(void* data,