SCI32: Add notes about KScrollWindow/Where,Go

This commit is contained in:
Willem Jan Palenstijn 2012-12-30 13:56:33 +01:00
parent 1fde5e615e
commit 704eb425d3

View File

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