/* * call-seq: * width * w * * Return the width (in pixels) of the surface. */ VALUE rbgm_surface_get_w(VALUE self) { SDL_Surface *surf; Data_Get_Struct(self, SDL_Surface, surf); return INT2NUM(surf->w); }