diff options
author | Paul Gilbert | 2019-02-15 19:23:53 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-02-16 15:17:51 -0800 |
commit | 25b066520ed1247e2b3cd70433f9aa86c3587f7c (patch) | |
tree | 54902ed749cff2c208677f5a3568610a9e7a03cf /engines/glk/glk_api.cpp | |
parent | f4fa6efad1ff41b3ed50c43ceec6904cfd3efa08 (diff) | |
download | scummvm-rg350-25b066520ed1247e2b3cd70433f9aa86c3587f7c.tar.gz scummvm-rg350-25b066520ed1247e2b3cd70433f9aa86c3587f7c.tar.bz2 scummvm-rg350-25b066520ed1247e2b3cd70433f9aa86c3587f7c.zip |
GLK: FROTZ: Improved setup and handling of fg/bg colors
Diffstat (limited to 'engines/glk/glk_api.cpp')
-rw-r--r-- | engines/glk/glk_api.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/glk/glk_api.cpp b/engines/glk/glk_api.cpp index 21640afe62..61c7a55aea 100644 --- a/engines/glk/glk_api.cpp +++ b/engines/glk/glk_api.cpp @@ -1199,4 +1199,14 @@ void GlkAPI::garglk_set_reversevideo_stream(strid_t str, uint reverse) { } } +void GlkAPI::garglk_window_get_cursor(winid_t win, uint *xpos, uint *ypos) { + Point pos = win->getCursor(); + *xpos = pos.x; + *ypos = pos.y; +} + +void GlkAPI::garglk_window_get_cursor_current(uint *xpos, uint *ypos) { + garglk_window_get_cursor(_windows->getFocusWindow(), xpos, ypos); +} + } // End of namespace Glk |