Skip to content

Commit

Permalink
Bugfix for Frame_#shape
Browse files Browse the repository at this point in the history
  • Loading branch information
wedesoft committed Jun 17, 2011
1 parent 225041a commit 330183e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -154,7 +154,7 @@ begin
s.extra_rdoc_files = []
s.rdoc_options = %w{--no-private}
s.add_dependency %<malloc>, [ '~> 1.1' ]
s.add_dependency %<multiarray>, [ '~> 0.15' ]
s.add_dependency %<multiarray>, [ '~> 0.23' ]
s.add_development_dependency %q{rake}
end
GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
Expand All @@ -176,7 +176,7 @@ begin
s.extra_rdoc_files = []
s.rdoc_options = %w{--no-private}
s.add_dependency %<malloc>, [ '~> 1.1' ]
s.add_dependency %<multiarray>, [ '~> 0.15' ]
s.add_dependency %<multiarray>, [ '~> 0.23' ]
end
GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
desc "Build the gem file #{GEM_SOURCE}"
Expand Down
6 changes: 1 addition & 5 deletions lib/hornetseye-frame/frame.rb
Expand Up @@ -31,10 +31,6 @@ def to_s
"Frame(#{typecode})"
end

def shape
[ @width, @height ]
end

def storage_size(width, height)
case typecode
when BGR
Expand Down Expand Up @@ -112,7 +108,7 @@ def typecode
end

def shape
self.class.shape
[@width, @height]
end

def memorise
Expand Down

0 comments on commit 330183e

Please sign in to comment.