2011-12-18 | Paul Boddie | raw files shortlog changelog graph | Fixed the width of the temporary surface. | |
main.py (file) |
1.1 --- a/main.py Wed Dec 14 02:03:08 2011 +0100 1.2 +++ b/main.py Sun Dec 18 18:55:01 2011 +0100 1.3 @@ -18,7 +18,7 @@ 1.4 containing the pixel content of the screen. 1.5 """ 1.6 1.7 - surface = pygame.Surface((WIDTH, MAX_HEIGHT), 0, screen) 1.8 + surface = pygame.Surface((MAX_WIDTH, MAX_HEIGHT), 0, screen) 1.9 a = pygame.surfarray.pixels3d(surface) 1.10 1.11 # Copy the array to a surface and apply a pixel intensity.