aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-27 02:15:40 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-27 02:15:40 +0200
commit21d9334b05e42018082ebbc9cdfbf2e95831bdd5 (patch)
tree739e8c70d91aeecad32a5fd72ae2d5ee69978aa7
parent26a1e2f3faecde5cc868b00ed08209c4a32eef3a (diff)
downloadosc-graphics-21d9334b05e42018082ebbc9cdfbf2e95831bdd5.tar.gz
warn if hardware surfaces unavailable
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 62d6b97..19ed0f9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -193,6 +193,11 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
+#if DEFAULT_SDL_FLAGS & SDL_HWSURFACE
+ if (!(screen->flags & SDL_HWSURFACE))
+ fprintf(stderr, "Warning: Hardware surfaces not available!\n");
+#endif
+
SDL_ShowCursor(show_cursor);
osc_server.open(port);