Finished preferred interpreters list
[projects/chimara/chimara.git] / libchimara / gestalt.c
index a9128ac6fbd948c4540ac0ef75ff8a2b39b02ea4..ebeb765f20a9f59d00697fa5758d345f1f6f33c1 100644 (file)
@@ -1,4 +1,5 @@
 #include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
+#include <config.h>
 #include "glk.h"
 
 /* Version of the Glk specification implemented by this library */
@@ -120,15 +121,22 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
                        return 1;
 
                case gestalt_DrawImage:
-                       return val == wintype_Graphics;
+                       return val == wintype_Graphics || val == wintype_TextBuffer;
 
                case gestalt_GraphicsTransparency:
                        return 1;
-                       
-               /* Unsupported capabilities */
+
+               /* Capabilities supported if compiled with GStreamer */
                case gestalt_Sound:
                case gestalt_SoundVolume:
                case gestalt_SoundNotify:
+#ifdef GSTREAMER_SOUND
+                       return 1;
+#else
+                       return 0;
+#endif
+                       
+               /* Unsupported capabilities */
                case gestalt_SoundMusic:
                /* Selector not supported */    
                default: