/*
* call-seq:
* savebmp( filename ) -> nil
*
* Save the Surface as a Windows Bitmap (BMP) file with the given filename.
*/
VALUE rbgm_image_savebmp( VALUE self, VALUE filename )
{
char *name;
SDL_Surface *surf;
name = StringValuePtr(filename);
Data_Get_Struct(self,SDL_Surface,surf);
if(SDL_SaveBMP(surf,name)!=0)
{
rb_raise(eSDLError,\
"Couldn't save surface to file %s: %s",name,SDL_GetError());
}
return Qnil;
}