lib/shoes/swt/image_pattern.rb in shoes-swt-4.0.0.pre3 vs lib/shoes/swt/image_pattern.rb in shoes-swt-4.0.0.pre4
- old
+ new
@@ -17,14 +17,14 @@
def pattern
@image ||= ::Swt::Image.new(Shoes.display, @dsl.path)
@pattern ||= ::Swt::Pattern.new(Shoes.display, @image)
end
- def apply_as_fill(gc, _left, _top, _width, _height, _angle = 0)
+ def apply_as_fill(gc, _dsl)
gc.set_background_pattern pattern
end
- def apply_as_stroke(gc, _left, _top, _width, _height, _angle = 0)
+ def apply_as_stroke(gc, _dsl)
gc.set_foreground_pattern pattern
end
end
end
end