mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Mir string fixes.
This commit is contained in:
+6
-3
@@ -27,6 +27,8 @@
|
||||
#include "internal.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
////// GLFW internal API //////
|
||||
@@ -41,7 +43,7 @@ int _glfwPlatformInit(void)
|
||||
if (!mir_connection_is_valid(_glfw.mir.connection))
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Mir: Unable to connect to Server %s",
|
||||
"Mir: Unable to connect to server: %s",
|
||||
mir_connection_get_error_message(_glfw.mir.connection));
|
||||
|
||||
mir_connection_release(_glfw.mir.connection);
|
||||
@@ -64,7 +66,8 @@ int _glfwPlatformInit(void)
|
||||
if (error)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Mir: Failed to create Event Mutex Error: %i\n", error);
|
||||
"Mir: Failed to create event mutex: %s\n",
|
||||
strerror(error));
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
@@ -85,7 +88,7 @@ void _glfwPlatformTerminate(void)
|
||||
|
||||
const char* _glfwPlatformGetVersionString(void)
|
||||
{
|
||||
const char* version = _GLFW_VERSION_NUMBER " Mir EGL "
|
||||
const char* version = _GLFW_VERSION_NUMBER " Mir EGL"
|
||||
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK)
|
||||
" clock_gettime"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user