lib/morandi/image-ops.rb in morandi-0.11.3 vs lib/morandi/image-ops.rb in morandi-0.12.0
- old
+ new
@@ -34,11 +34,11 @@
end
end
def call(image, pixbuf)
if @area and (not @area.width.zero?) and (not @area.height.zero?)
# NB: Cheap - fast & shares memory
- Gdk::Pixbuf.new(pixbuf, @area.x, @area.y,
+ GdkPixbuf::Pixbuf.new(pixbuf, @area.x, @area.y,
@area.width, @area.height)
else
pixbuf
end
end
@@ -221,9 +221,10 @@
end
end
case style
when 'retro'
+ # WARNING: CairoUtils class is not available in this gem!
CairoUtils.rounded_rectangle(cr, x, y,
img_width + x - (size*2), img_height+y-(size*2), size)
when 'square'
cr.rectangle(x, y, img_width - (size*2), img_height - (size*2))
end