mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Wayland: Fix phrasing of error messages
This is adapted to 3.3-stable from
2d45681bc3.
This commit is contained in:
+6
-6
@@ -147,7 +147,7 @@ static void setCursor(_GLFWwindow* window, const char* name)
|
||||
if (!cursor)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Standard cursor not found");
|
||||
"Wayland: Standard cursor shape unavailable");
|
||||
return;
|
||||
}
|
||||
// TODO: handle animated cursors too.
|
||||
@@ -1040,7 +1040,7 @@ int _glfwPlatformInit(void)
|
||||
if (!_glfw.wl.cursor.handle)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Failed to open libwayland-cursor");
|
||||
"Wayland: Failed to load libwayland-cursor");
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
@@ -1057,7 +1057,7 @@ int _glfwPlatformInit(void)
|
||||
if (!_glfw.wl.egl.handle)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Failed to open libwayland-egl");
|
||||
"Wayland: Failed to load libwayland-egl");
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
@@ -1072,7 +1072,7 @@ int _glfwPlatformInit(void)
|
||||
if (!_glfw.wl.xkb.handle)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Failed to open libxkbcommon");
|
||||
"Wayland: Failed to load libxkbcommon");
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
@@ -1173,7 +1173,7 @@ int _glfwPlatformInit(void)
|
||||
if (!_glfw.wl.cursorTheme)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Unable to load default cursor theme");
|
||||
"Wayland: Failed to load default cursor theme");
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
// If this happens to be NULL, we just fallback to the scale=1 version.
|
||||
@@ -1196,7 +1196,7 @@ int _glfwPlatformInit(void)
|
||||
if (!_glfw.wl.clipboardString)
|
||||
{
|
||||
_glfwInputError(GLFW_OUT_OF_MEMORY,
|
||||
"Wayland: Unable to allocate clipboard memory");
|
||||
"Wayland: Failed to allocate clipboard memory");
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user