From 166668a189ab2d61e5015a4cde83eb1213fd08e7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 5 Jun 2020 15:53:48 -0700 Subject: 6474 --- prototypes/browse/21/screen-position-state.mu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prototypes/browse/21/screen-position-state.mu') diff --git a/prototypes/browse/21/screen-position-state.mu b/prototypes/browse/21/screen-position-state.mu index 8864cbe8..bb0adc97 100644 --- a/prototypes/browse/21/screen-position-state.mu +++ b/prototypes/browse/21/screen-position-state.mu @@ -13,7 +13,7 @@ fn init-screen-position-state _self: (addr screen-position-state) { # hardcoded parameters: # top-margin # page-margin - # text-width + # page-width var self/esi: (addr screen-position-state) <- copy _self var nrows/eax: int <- copy 0 var ncols/ecx: int <- copy 0 @@ -34,9 +34,9 @@ fn init-screen-position-state _self: (addr screen-position-state) { # self->leftcol = page-margin dest <- get self, leftcol copy-to *dest, 5 # left-margin - # self->rightcol = self->leftcol + text-width + # self->rightcol = self->leftcol + page-width dest <- get self, rightcol - copy-to *dest, 0x45 # left-margin + text-width + copy-to *dest, 0x45 # left-margin + page-width # start-drawing self } -- cgit 1.4.1-2-gfad0