From 240cf324022eb3e307f0516144096cea3394cc74 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 31 Oct 2016 15:56:49 +0100 Subject: gl: Use MessageBox for GLFW initialization error messages on windows. --- platform/gl/gl-main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/gl/gl-main.c') diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index 9084827c..2a46e1b1 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -1318,7 +1318,11 @@ static void on_display(GLFWwindow *window) static void on_error(int error, const char *msg) { +#ifdef _WIN32 + MessageBoxA(NULL, msg, "MuPDF GLFW Error", MB_ICONERROR); +#else fprintf(stderr, "gl error %d: %s\n", error, msg); +#endif } static void usage(const char *argv0) -- cgit v1.2.3