mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
Fix HiDPI support
This commit is contained in:
parent
5a664e1e46
commit
3262661e1e
2 changed files with 4 additions and 6 deletions
|
|
@ -253,8 +253,8 @@ void wlr_output_make_current(struct wlr_output *output) {
|
|||
|
||||
static void output_fullscreen_surface_render(struct wlr_output *output,
|
||||
struct wlr_surface *surface, const struct timespec *when) {
|
||||
int x = (output->width - surface->current->width) / 2;
|
||||
int y = (output->height - surface->current->height) / 2;
|
||||
int x = (output->width - surface->current->buffer_width) / 2;
|
||||
int y = (output->height - surface->current->buffer_height) / 2;
|
||||
|
||||
glViewport(0, 0, output->width, output->height);
|
||||
glClearColor(0, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue