[gtk+] gdk: wayland: always set buffer scale on size update
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: wayland: always set buffer scale on size update
- Date: Fri, 18 Aug 2017 23:49:02 +0000 (UTC)
commit fddfb60c59aceaa94c11dfbb2b646cb497e0499d
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Fri Aug 18 23:57:56 2017 +0100
gdk: wayland: always set buffer scale on size update
We're only updating this when we have an EGL window. This means we
have the wrong scaling factor when using Vulkan.
https://bugzilla.gnome.org/show_bug.cgi?id=786492
gdk/wayland/gdkwindow-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index c304799..8af96e1 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -336,8 +336,8 @@ gdk_wayland_window_update_size (GdkWindow *window,
width * scale,
height * scale,
0, 0);
- wl_surface_set_buffer_scale (impl->display_server.wl_surface, scale);
}
+ wl_surface_set_buffer_scale (impl->display_server.wl_surface, scale);
area.x = 0;
area.y = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]