mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-23 06:59:44 -05:00
wlr_drm_format: Change wlr_drm_format_dup to copy
This commit is contained in:
parent
099a147439
commit
340700cb70
6 changed files with 31 additions and 24 deletions
|
|
@ -6,7 +6,7 @@
|
|||
void wlr_drm_format_init(struct wlr_drm_format *fmt, uint32_t format);
|
||||
bool wlr_drm_format_has(const struct wlr_drm_format *fmt, uint64_t modifier);
|
||||
bool wlr_drm_format_add(struct wlr_drm_format *fmt, uint64_t modifier);
|
||||
struct wlr_drm_format *wlr_drm_format_dup(const struct wlr_drm_format *format);
|
||||
bool wlr_drm_format_copy(struct wlr_drm_format *dst, const struct wlr_drm_format *src);
|
||||
/**
|
||||
* Intersect modifiers for two DRM formats.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ struct wlr_swapchain {
|
|||
struct wlr_allocator *allocator; // NULL if destroyed
|
||||
|
||||
int width, height;
|
||||
struct wlr_drm_format *format;
|
||||
struct wlr_drm_format format;
|
||||
|
||||
struct wlr_swapchain_slot slots[WLR_SWAPCHAIN_CAP];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue