diff --git a/lib/swf_ruby/swf/bits_lossless2.rb b/lib/swf_ruby/swf/bits_lossless2.rb index 54c8c40..c0e9aa1 100644 --- a/lib/swf_ruby/swf/bits_lossless2.rb +++ b/lib/swf_ruby/swf/bits_lossless2.rb @@ -5,8 +5,8 @@ module Swf class BitsLossless2 attr_accessor :format, :width, :height, :color_table_size, :zlib_bitmap_data - ShiftDepth = Magick::QuantumDepth - 8 - MaxRGB = 2 ** Magick::QuantumDepth - 1 + ShiftDepth = Magick::MAGICKCORE_QUANTUM_DEPTH - 8 + MaxRGB = 2 ** Magick::MAGICKCORE_QUANTUM_DEPTH - 1 def initialize(image_bytearray) image = Magick::Image.from_blob(image_bytearray).first