projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new preferences and settings
[projects/chimara/chimara.git]
/
libchimara
/
gestalt.c
diff --git
a/libchimara/gestalt.c
b/libchimara/gestalt.c
index f7ac63a8a5cc5a84324086c57f3d12e3a423e454..ebeb765f20a9f59d00697fa5758d345f1f6f33c1 100644
(file)
--- a/
libchimara/gestalt.c
+++ b/
libchimara/gestalt.c
@@
-1,4
+1,5
@@
#include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
#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 */
#include "glk.h"
/* Version of the Glk specification implemented by this library */
@@
-111,16
+112,32
@@
glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
/* Hyperlinks supported on textbuffers and textgrids */
case gestalt_HyperlinkInput:
return val == wintype_TextBuffer || val == wintype_TextGrid;
/* Hyperlinks supported on textbuffers and textgrids */
case gestalt_HyperlinkInput:
return val == wintype_TextBuffer || val == wintype_TextGrid;
-
- /*
Unsupported capabilitie
s */
+
+ /*
Mouse support present in textgrid
s */
case gestalt_MouseInput:
case gestalt_MouseInput:
+ return val == wintype_TextGrid;
+
case gestalt_Graphics:
case gestalt_Graphics:
+ return 1;
+
case gestalt_DrawImage:
case gestalt_DrawImage:
+ return val == wintype_Graphics || val == wintype_TextBuffer;
+
+ case gestalt_GraphicsTransparency:
+ return 1;
+
+ /* Capabilities supported if compiled with GStreamer */
case gestalt_Sound:
case gestalt_SoundVolume:
case gestalt_SoundNotify:
case gestalt_Sound:
case gestalt_SoundVolume:
case gestalt_SoundNotify:
+#ifdef GSTREAMER_SOUND
+ return 1;
+#else
+ return 0;
+#endif
+
+ /* Unsupported capabilities */
case gestalt_SoundMusic:
case gestalt_SoundMusic:
- case gestalt_GraphicsTransparency:
/* Selector not supported */
default:
return 0;
/* Selector not supported */
default:
return 0;