# File lib/rubygame/surface.rb, line 171
  def depth
    @struct.format.BitsPerPixel
  end