mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 23:45:58 +01:00
Rename wlr_frame_buffer_clear to wlr_frame_buffer_destroy in wlr_screencast.c
This commit is contained in:
parent
24a793135c
commit
a8d12c6163
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
||||||
#include "xdpw.h"
|
#include "xdpw.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
|
|
||||||
static void wlr_frame_buffer_clear(struct xdpw_screencast_instance *cast) {
|
static void wlr_frame_buffer_destroy(struct xdpw_screencast_instance *cast) {
|
||||||
// This check isn't needed
|
// This check isn't needed
|
||||||
if (cast->simple_frame.data != NULL) {
|
if (cast->simple_frame.data != NULL) {
|
||||||
munmap(cast->simple_frame.data, cast->simple_frame.size);
|
munmap(cast->simple_frame.data, cast->simple_frame.size);
|
||||||
|
@ -37,7 +37,7 @@ void xdpw_wlr_frame_free(struct xdpw_screencast_instance *cast) {
|
||||||
cast->wlr_frame = NULL;
|
cast->wlr_frame = NULL;
|
||||||
// TODO: reuse this buffer unless we quit or error out
|
// TODO: reuse this buffer unless we quit or error out
|
||||||
if (cast->quit || cast->err) {
|
if (cast->quit || cast->err) {
|
||||||
wlr_frame_buffer_clear(cast);
|
wlr_frame_buffer_destroy(cast);
|
||||||
logprint(TRACE, "xdpw: simple_frame buffer destroyed");
|
logprint(TRACE, "xdpw: simple_frame buffer destroyed");
|
||||||
}
|
}
|
||||||
logprint(TRACE, "wlroots: frame destroyed");
|
logprint(TRACE, "wlroots: frame destroyed");
|
||||||
|
@ -119,7 +119,7 @@ static void wlr_frame_buffer_chparam(struct xdpw_screencast_instance *cast,
|
||||||
cast->simple_frame.stride = stride;
|
cast->simple_frame.stride = stride;
|
||||||
cast->simple_frame.size = stride * height;
|
cast->simple_frame.size = stride * height;
|
||||||
cast->simple_frame.format = format;
|
cast->simple_frame.format = format;
|
||||||
wlr_frame_buffer_clear(cast);
|
wlr_frame_buffer_destroy(cast);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wlr_frame_buffer(void *data, struct zwlr_screencopy_frame_v1 *frame,
|
static void wlr_frame_buffer(void *data, struct zwlr_screencopy_frame_v1 *frame,
|
||||||
|
|
Loading…
Reference in a new issue