Navigation Menu

Skip to content

Commit

Permalink
Cleaned up background.rb a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorb committed Sep 2, 2012
1 parent 33dbc8b commit 668013c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/shoes/background.rb
Expand Up @@ -16,9 +16,8 @@ def initialize(parent, color, opts = {}, blk = nil)
@opts = opts
@app = opts[:app]

@color = color
@color = opts[:fill] if opts.has_key? :fill
@curve = opts[:curve] ? opts[:curve] : 0
@color = opts.has_key?(:fill) ? opts[:fill] : color
@curve = opts[:curve] ? opts[:curve] : 0 # || 0

@gui = Shoes.configuration.backend_for(self, @parent.gui, blk)
end
Expand Down

0 comments on commit 668013c

Please sign in to comment.