lib/shoes/swt/gradient.rb in shoes-swt-4.0.0.pre4 vs lib/shoes/swt/gradient.rb in shoes-swt-4.0.0.pre5
- old
+ new
@@ -38,16 +38,17 @@
pattern = create_pattern(dsl)
gc.set_foreground_pattern pattern
end
private
+
def create_pattern(dsl)
width = dsl.element_width * 0.5
height = dsl.element_height * 0.5
angle = normalize_angle(-dsl.angle)
left, top, width, height = determine_args_based_on_angle(angle,
- dsl.element_left, dsl.element_top,
- width, height)
+ dsl.element_left, dsl.element_top,
+ width, height)
pattern = ::Swt::Pattern.new Shoes.display, left, top, width, height,
color1.real, color2.real
@patterns << pattern
pattern