From 704eb425d3503e1680fa06441d7bada60998ee09 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 30 Dec 2012 13:56:33 +0100 Subject: SCI32: Add notes about KScrollWindow/Where,Go --- engines/sci/engine/kgraphics32.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp index aa59ff4364..6651b802cf 100644 --- a/engines/sci/engine/kgraphics32.cpp +++ b/engines/sci/engine/kgraphics32.cpp @@ -370,14 +370,16 @@ reg_t kScrollWindow(EngineState *s, int argc, reg_t *argv) { kStub(s, argc, argv); break; case 10: // Where, called by ScrollableWindow::where - // TODO - // argv[2] is an unknown integer + // TODO: + // Gives the current relative scroll location as a fraction + // with argv[2] as the denominator. (Return value is the numerator.) // Silenced the warnings because of the high amount of console spam //kStub(s, argc, argv); break; case 11: // Go, called by ScrollableWindow::scrollTo - // 2 extra parameters here - // TODO + // TODO: + // Two arguments provide a fraction: argv[2] is num., argv[3] is denom. + // Scrolls to the relative location given by the fraction. kStub(s, argc, argv); break; case 12: // Insert, called by ScrollableWindow::insertString -- cgit v1.2.3