diff options
Diffstat (limited to 'platform')
-rw-r--r-- | platform/gl/gl-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |