if (display_type == DT_DEFAULT && !display_remote) {
#if defined(CONFIG_MARU)
- // FIXME: for compatibility...
// If no display_type is specified,
- // we use DT_MARU_SDL on Linux, Windows and
- // use DT_MARU_SHM on MacOS.
-#if defined(CONFIG_SDL)
+ // we use DT_MARU_QT_OFFSCREEN
+#if defined(CONFIG_QT)
+ display_type = DT_MARU_QT_OFFSCREEN;
+#elif defined(CONFIG_SDL) && defined(CONFIG_JAVA_UI)
display_type = DT_MARU_SDL;
-#elif defined(CONFIG_USE_SHM)
+#elif defined(CONFIG_USE_SHM) && defined(CONFIG_JAVA_UI)
display_type = DT_MARU_SHM;
-#elif defined(CONFIG_QT)
- display_type = DT_MARU_QT;
#endif
#elif defined(CONFIG_GTK)
display_type = DT_GTK;