Beginning work on graphic windows. Hopelessly broken still....
[rodin/chimara.git] / libchimara / gestalt.c
index f7ac63a8a5cc5a84324086c57f3d12e3a423e454..a9128ac6fbd948c4540ac0ef75ff8a2b39b02ea4 100644 (file)
@@ -111,16 +111,25 @@ 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;
-                       
-               /* Unsupported capabilities */
+
+               /* Mouse support present in textgrids */
                case gestalt_MouseInput:
+                       return val == wintype_TextGrid;
+
                case gestalt_Graphics:
+                       return 1;
+
                case gestalt_DrawImage:
+                       return val == wintype_Graphics;
+
+               case gestalt_GraphicsTransparency:
+                       return 1;
+                       
+               /* Unsupported capabilities */
                case gestalt_Sound:
                case gestalt_SoundVolume:
                case gestalt_SoundNotify:
                case gestalt_SoundMusic:
-               case gestalt_GraphicsTransparency:
                /* Selector not supported */    
                default:
                        return 0;