Browse Source

bugfix, different resolution

master
Joshua Moerman 13 years ago
parent
commit
aee4b7204a
  1. 6
      Canvas.hpp
  2. 2
      batch.sh

6
Canvas.hpp

@ -29,7 +29,7 @@ class Canvas2D {
public:
Canvas2D(size_t width, size_t height)
: storage(width, Storage::value_type(height, 0))
: storage(height, Row(width, 0))
{}
Row & operator[](size_t r){
@ -58,8 +58,8 @@ public:
template <size_t N>
size_t size() const {
if ( N == 0 ) return storage.size();
if ( N == 1 ) return storage.front().size();
if ( N == 0 ) return storage.front().size();
if ( N == 1 ) return storage.size();
return 0;
}

2
batch.sh

@ -1,2 +1,2 @@
#!/bin/bash
while true; do ./build/Debug/AwesomeAttract0r -P /Users/joshua/Documents/Code/AwesomeAttractor/render/ -R -I 20 -W 640 -H 640 -v -f attractors/emptyUnravel3D.stf; done
while true; do ./build/Debug/AwesomeAttract0r -P ./render/ -R -I 50 -W 1280 -H 800 -f attractors/emptyUnravel3D.stf; done