mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Wayland: Rename function to its purpose
This commit is contained in:
parent
80dc0533cf
commit
47193f15de
@ -287,7 +287,7 @@ static const struct zxdg_toplevel_decoration_v1_listener xdgDecorationListener =
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Makes the surface considered as XRGB instead of ARGB.
|
// Makes the surface considered as XRGB instead of ARGB.
|
||||||
static void setOpaqueRegion(_GLFWwindow* window)
|
static void setContentAreaOpaque(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
struct wl_region* region;
|
struct wl_region* region;
|
||||||
|
|
||||||
@ -309,7 +309,7 @@ static void resizeWindow(_GLFWwindow* window)
|
|||||||
int scaledHeight = window->wl.height * scale;
|
int scaledHeight = window->wl.height * scale;
|
||||||
wl_egl_window_resize(window->wl.egl.window, scaledWidth, scaledHeight, 0, 0);
|
wl_egl_window_resize(window->wl.egl.window, scaledWidth, scaledHeight, 0, 0);
|
||||||
if (!window->wl.transparent)
|
if (!window->wl.transparent)
|
||||||
setOpaqueRegion(window);
|
setContentAreaOpaque(window);
|
||||||
_glfwInputFramebufferSize(window, scaledWidth, scaledHeight);
|
_glfwInputFramebufferSize(window, scaledWidth, scaledHeight);
|
||||||
|
|
||||||
if (!window->wl.decorations.top.surface)
|
if (!window->wl.decorations.top.surface)
|
||||||
@ -739,7 +739,7 @@ static GLFWbool createNativeSurface(_GLFWwindow* window,
|
|||||||
|
|
||||||
window->wl.transparent = fbconfig->transparent;
|
window->wl.transparent = fbconfig->transparent;
|
||||||
if (!window->wl.transparent)
|
if (!window->wl.transparent)
|
||||||
setOpaqueRegion(window);
|
setContentAreaOpaque(window);
|
||||||
|
|
||||||
if (window->monitor || wndconfig->visible)
|
if (window->monitor || wndconfig->visible)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user