mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
screencopy: Use box size instead for shm copy
This doesn't change functionality, both the values are the same. Less confusing to use the box size.
This commit is contained in:
parent
7a22030071
commit
515681503e
1 changed files with 2 additions and 2 deletions
|
|
@ -196,8 +196,8 @@ static bool frame_shm_copy(struct wlr_screencopy_frame_v1 *frame,
|
||||||
|
|
||||||
int x = frame->box.x;
|
int x = frame->box.x;
|
||||||
int y = frame->box.y;
|
int y = frame->box.y;
|
||||||
int width = frame->buffer->width;
|
int width = frame->box.width;
|
||||||
int height = frame->buffer->height;
|
int height = frame->box.height;
|
||||||
|
|
||||||
void *data;
|
void *data;
|
||||||
uint32_t format;
|
uint32_t format;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue