1.1 --- a/ula.py Tue Jun 21 20:18:37 2016 +0200
1.2 +++ b/ula.py Tue Jun 21 23:20:26 2016 +0200
1.3 @@ -233,9 +233,9 @@
1.4 a full screen.
1.5 """
1.6
1.7 - self.width, self.depth, rows = self.modes[mode]
1.8 + width, self.depth, rows = self.modes[mode]
1.9
1.10 - columns = (self.width * self.depth) / 8 # bits read -> bytes read
1.11 + columns = (width * self.depth) / 8 # bits read -> bytes read
1.12 self.access_frequency = 80 / columns # cycle frequency for reading bytes
1.13 row_size = columns * LINES_PER_ROW
1.14
1.15 @@ -248,7 +248,7 @@
1.16
1.17 # Scanline configuration.
1.18
1.19 - self.xscale = MAX_WIDTH / self.width # pixel width in display pixels
1.20 + self.xscale = MAX_WIDTH / width # pixel width in display pixels
1.21 self.row_height = MAX_HEIGHT / rows # row height in display pixels
1.22 self.display_height = rows * self.row_height # display height in pixels
1.23