# HG changeset patch # User Paul Boddie # Date 1466544026 -7200 # Node ID 37c6315ecb876c0f42acaa8965e46e930ff7b45f # Parent 4658aa28f367a706630b05211078ddc5b67fd8cb Removed the width instance attribute. diff -r 4658aa28f367 -r 37c6315ecb87 ula.py --- a/ula.py Tue Jun 21 20:18:37 2016 +0200 +++ b/ula.py Tue Jun 21 23:20:26 2016 +0200 @@ -233,9 +233,9 @@ a full screen. """ - self.width, self.depth, rows = self.modes[mode] + width, self.depth, rows = self.modes[mode] - columns = (self.width * self.depth) / 8 # bits read -> bytes read + columns = (width * self.depth) / 8 # bits read -> bytes read self.access_frequency = 80 / columns # cycle frequency for reading bytes row_size = columns * LINES_PER_ROW @@ -248,7 +248,7 @@ # Scanline configuration. - self.xscale = MAX_WIDTH / self.width # pixel width in display pixels + self.xscale = MAX_WIDTH / width # pixel width in display pixels self.row_height = MAX_HEIGHT / rows # row height in display pixels self.display_height = rows * self.row_height # display height in pixels