screencopy: Actually use y-inversion flag
parent
46fdbfb109
commit
843368c993
|
@ -37,7 +37,6 @@
|
||||||
|
|
||||||
void screencopy_stop(struct screencopy* self)
|
void screencopy_stop(struct screencopy* self)
|
||||||
{
|
{
|
||||||
|
|
||||||
aml_stop(aml_get_default(), self->timer);
|
aml_stop(aml_get_default(), self->timer);
|
||||||
|
|
||||||
self->status = SCREENCOPY_STOPPED;
|
self->status = SCREENCOPY_STOPPED;
|
||||||
|
@ -90,8 +89,6 @@ static void screencopy_buffer_done(void* data,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer->y_inverted = !self->have_linux_dmabuf;
|
|
||||||
|
|
||||||
assert(!self->front);
|
assert(!self->front);
|
||||||
self->front = buffer;
|
self->front = buffer;
|
||||||
|
|
||||||
|
@ -127,8 +124,10 @@ static void screencopy_flags(void* data,
|
||||||
{
|
{
|
||||||
(void)frame;
|
(void)frame;
|
||||||
|
|
||||||
// TODO
|
struct screencopy* self = data;
|
||||||
// self->buffer->y_inverted = !!(flags & ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT);
|
|
||||||
|
self->front->y_inverted =
|
||||||
|
!!(flags & ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void screencopy_ready(void* data,
|
static void screencopy_ready(void* data,
|
||||||
|
|
Loading…
Reference in New Issue