diff options
Diffstat (limited to 'prototypes/browse/17-file-state-broken')
-rw-r--r-- | prototypes/browse/17-file-state-broken/screen-position-state.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prototypes/browse/17-file-state-broken/screen-position-state.mu b/prototypes/browse/17-file-state-broken/screen-position-state.mu index af623d16..e5767de8 100644 --- a/prototypes/browse/17-file-state-broken/screen-position-state.mu +++ b/prototypes/browse/17-file-state-broken/screen-position-state.mu @@ -13,14 +13,14 @@ fn init-screen-position-state self: (addr screen-position-state), nrows: int, nc # hardcoded parameters: # top-margin # page-margin - # text-width + # page-width var dest/eax: (addr int) <- copy 0 # self->nrows = nrows # self->ncols = ncols # self->toprow = top-margin # self->botrow = nrows # self->leftcol = page-margin - # self->rightcol = self->leftcol + text-width + # self->rightcol = self->leftcol + page-width # start-drawing(self) } @@ -42,7 +42,7 @@ fn next-line self: (addr screen-position-state) { fn next-page self: (addr screen-position-state) { # self->leftcol = self->rightcol + 5 - # self->rightcol = self->leftcol + text-width + # self->rightcol = self->leftcol + page-width } fn done-drawing? self: (addr screen-position-state) -> result/eax: boolean { |