mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
render: remove wlr_texture_get_size
Users can just access the width/height fields directly.
This commit is contained in:
parent
9f211b5dd4
commit
6369f70931
2 changed files with 0 additions and 14 deletions
|
@ -51,14 +51,6 @@ struct wlr_texture *wlr_texture_from_wl_drm(struct wlr_renderer *renderer,
|
||||||
struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
|
struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
|
||||||
struct wlr_dmabuf_attributes *attribs);
|
struct wlr_dmabuf_attributes *attribs);
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the texture width and height.
|
|
||||||
*
|
|
||||||
* This function is deprecated. Access wlr_texture's width and height fields
|
|
||||||
* directly instead.
|
|
||||||
*/
|
|
||||||
void wlr_texture_get_size(struct wlr_texture *texture, int *width, int *height);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this texture is using a fully opaque format.
|
* Returns true if this texture is using a fully opaque format.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -46,12 +46,6 @@ struct wlr_texture *wlr_texture_from_dmabuf(struct wlr_renderer *renderer,
|
||||||
return renderer->impl->texture_from_dmabuf(renderer, attribs);
|
return renderer->impl->texture_from_dmabuf(renderer, attribs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_texture_get_size(struct wlr_texture *texture, int *width,
|
|
||||||
int *height) {
|
|
||||||
*width = texture->width;
|
|
||||||
*height = texture->height;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wlr_texture_is_opaque(struct wlr_texture *texture) {
|
bool wlr_texture_is_opaque(struct wlr_texture *texture) {
|
||||||
if (!texture->impl->is_opaque) {
|
if (!texture->impl->is_opaque) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue