projects
/
rodin
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added first version of hyperlink support. Only textbuffers at the moment, but can...
[rodin/chimara.git]
/
libchimara
/
gestalt.c
diff --git
a/libchimara/gestalt.c
b/libchimara/gestalt.c
index 1729a878350c9c333eab0f88d6ea321583f61bbd..2316dca52cc9992e6abe2d498ff2b7ff1342e944 100644
(file)
--- a/
libchimara/gestalt.c
+++ b/
libchimara/gestalt.c
@@
-103,6
+103,14
@@
glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
/* Timer capabilities present */
case gestalt_Timer:
return 1;
/* Timer capabilities present */
case gestalt_Timer:
return 1;
+
+ /* Hyperlink capabilities present */
+ case gestalt_Hyperlinks:
+ return 1;
+
+ /* Hyperlinks supported on textbuffers only at the moment */
+ case gestalt_HyperlinkInput:
+ return val == wintype_TextBuffer;
/* Unsupported capabilities */
case gestalt_MouseInput:
/* Unsupported capabilities */
case gestalt_MouseInput:
@@
-111,8
+119,6
@@
glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
case gestalt_Sound:
case gestalt_SoundVolume:
case gestalt_SoundNotify:
case gestalt_Sound:
case gestalt_SoundVolume:
case gestalt_SoundNotify:
- case gestalt_Hyperlinks:
- case gestalt_HyperlinkInput:
case gestalt_SoundMusic:
case gestalt_GraphicsTransparency:
/* Selector not supported */
case gestalt_SoundMusic:
case gestalt_GraphicsTransparency:
/* Selector not supported */