mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
Use constant VBO for quad, add matrix stuff
This commit is contained in:
parent
cda12a3eda
commit
fc1dc1b5b0
8 changed files with 156 additions and 28 deletions
|
|
@ -100,3 +100,15 @@ void wlr_output_destroy(struct wlr_output *output) {
|
|||
list_free(output->modes);
|
||||
free(output);
|
||||
}
|
||||
|
||||
void wlr_output_effective_resolution(struct wlr_output *output,
|
||||
int *width, int *height) {
|
||||
// TODO: Scale factor
|
||||
if (output->transform % 2 == 1) {
|
||||
*width = output->height;
|
||||
*height = output->width;
|
||||
} else {
|
||||
*width = output->width;
|
||||
*height = output->height;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue