deck: flush surface upon exit

Fixes bug #180
This commit is contained in:
Andy Meneely
2016-11-15 20:02:12 -05:00
parent 8604ebd684
commit e18084d963
24 changed files with 97 additions and 0 deletions
+4
View File
@@ -51,6 +51,10 @@ module Squib
@cairo_context.restore
end
def finish!
@cairo_surface.finish
end
########################
### BACKEND GRAPHICS ###
########################
+1
View File
@@ -73,6 +73,7 @@ module Squib
if block_given?
instance_eval(&block) # here we go. wheeeee!
end
@cards.each { |c| c.finish! }
end
# Directly accesses the array of cards in the deck