diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-06-05 15:53:48 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-06-05 15:53:48 -0700 |
commit | 166668a189ab2d61e5015a4cde83eb1213fd08e7 (patch) | |
tree | d61440330d58ad8a5a19c35f7acfd0400e4fb19f /prototypes/browse/17-file-state-broken/screen-position-state.mu | |
parent | e8d793e9552d56e6389d53b8c0b3c27d53f2b82c (diff) | |
download | mu-166668a189ab2d61e5015a4cde83eb1213fd08e7.tar.gz |
6474
Diffstat (limited to 'prototypes/browse/17-file-state-broken/screen-position-state.mu')
-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 { |