aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/glk_interface.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-16 21:53:59 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commite344809eeac75e9dbfd943015c083001a2628440 (patch)
tree9edc79afeaa76cd1138cb315bacc3e1fe04ce794 /engines/glk/frotz/glk_interface.h
parentbc4df65bd7b81dc5cec98f6681e9d83f7c22dc8e (diff)
downloadscummvm-rg350-e344809eeac75e9dbfd943015c083001a2628440.tar.gz
scummvm-rg350-e344809eeac75e9dbfd943015c083001a2628440.tar.bz2
scummvm-rg350-e344809eeac75e9dbfd943015c083001a2628440.zip
GLK: FROTZ: Fix gcc warnings, adding extra method comments
Diffstat (limited to 'engines/glk/frotz/glk_interface.h')
-rw-r--r--engines/glk/frotz/glk_interface.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/glk/frotz/glk_interface.h b/engines/glk/frotz/glk_interface.h
index 0103f88b1b..5e2fa62663 100644
--- a/engines/glk/frotz/glk_interface.h
+++ b/engines/glk/frotz/glk_interface.h
@@ -94,10 +94,33 @@ public:
bool _soundLocked;
bool _soundPlaying;
protected:
+ /**
+ * Return the length of the character in screen units.
+ */
int os_char_width(zchar z);
+
+ /**
+ * Calculate the length of a word in screen units. Apart from letters,
+ * the word may contain special codes:
+ *
+ * ZC_NEW_STYLE - next character is a new text style
+ * ZC_NEW_FONT - next character is a new font
+ */
int os_string_width(const zchar *s);
+
+ /**
+ * Return the length of a string
+ */
int os_string_length(zchar *s);
+
+ /**
+ * Prepare a sample for playing
+ */
void os_prepare_sample(int a);
+
+ /**
+ * Signal that a given sample is finished with
+ */
void os_finish_with_sample(int a);
/**