mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
This is based on code from Sway, which is also MIT licensed hence compatible. This makes the surface damaging and rendering code easier to follow and makes it easier to import future changes to Sway as well.
11 lines
224 B
C
11 lines
224 B
C
#ifndef CG_UTIL_H
|
|
#define CG_UTIL_H
|
|
|
|
#include <wlr/types/wlr_box.h>
|
|
|
|
/** Apply scale to a width or height. */
|
|
int scale_length(int length, int offset, float scale);
|
|
|
|
void scale_box(struct wlr_box *box, float scale);
|
|
|
|
#endif
|