/* call-seq: * title = title * * Sets the window title for the Screen. * * title:: a String, (usually) displayed at the top of the Rubygame * window (when not in fullscreen mode). If omitted or +nil+, * +title+ will be an empty string. * How this string is displayed (if at all) is system-dependent. */ VALUE rbgm_screen_setcaption(VALUE self, VALUE title) { char *title_str; title_str = ""; /* default to blank */ if( RTEST(title) ) { title_str = StringValuePtr(title); } SDL_WM_SetCaption(title_str,title_str); return self; }