/* call-seq: * size -> [w,h] * * Return the surface's width and height (in pixels) in an Array. */ VALUE rbgm_surface_get_size(VALUE self) { SDL_Surface *surf; Data_Get_Struct(self, SDL_Surface, surf); return rb_ary_new3( 2, INT2NUM(surf->w), INT2NUM(surf->h) ); }