GLK: FROTZ: Improved setup and handling of fg/bg colors

This commit is contained in:
Paul Gilbert 2019-02-15 19:23:53 -08:00
parent f4fa6efad1
commit 25b066520e
10 changed files with 242 additions and 110 deletions

View file

@ -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