Use constant VBO for quad, add matrix stuff

This commit is contained in:
Drew DeVault 2017-06-07 21:35:07 -04:00
parent cda12a3eda
commit fc1dc1b5b0
8 changed files with 156 additions and 28 deletions

View file

@ -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;
}
}