mod/maxgui.mod/fltkmaxgui.mod/src/Fl_display.cxx
void Fl::display(const char *d) {
#if defined(__APPLE__) || defined(WIN32)
  (void)d;
#else
  static char e[1024];
  strcpy(e,"DISPLAY=");
  strlcat(e,d,sizeof(e));
  for (char *c = e+8; *c!=':'; c++) {
    if (!*c) {
      strlcat(e,":0.0",sizeof(e));
      break;
    }
  }
  putenv(e);
#endif // __APPLE__
}
/**
    Sets the X display to use for all windows.  Actually this just sets
    the environment variable $DISPLAY to the passed string, so this only
    works before you show() the first window or otherwise open the display,
    and does nothing useful under WIN32.
*/
Sets the X display to use for all windows.  Actually this just sets
the environment variable $DISPLAY to the passed string, so this only
works before you show() the first window or otherwise open the display,
and does nothing useful under WIN32.
Sets the X display to use for all windows . Actually this just sets the environment variable $DISPLAY to the passed string so this only works before you show () the first window or otherwise open the display and does nothing useful under WIN32 .
void Fl::display(const char *d) {
#if defined(__APPLE__) || defined(WIN32)
  (void)d;
#else
  static char e[1024];
  strcpy(e,"DISPLAY=");
  strlcat(e,d,sizeof(e));
  for (char *c = e+8; *c!=':'; c++) {
    if (!*c) {
      strlcat(e,":0.0",sizeof(e));
      break;
    }
  }
  putenv(e);
#endif 
}
void Fl :: display ( const char * d ) { #if defined ( __APPLE__ ) || defined ( WIN32 ) ( void ) d ; #else static char e [ 1024 ] ; strcpy ( e , " " ) ; strlcat ( e , d , sizeof ( e ) ) ; for ( char * c = e + 8 ; * c != ' ' ; c ++ ) { if ( ! * c ) { strlcat ( e , " " , sizeof ( e ) ) ; break ; } } putenv ( e ) ; #endif }
Sets the X display to use for all windows.
Sets the X display to use for all windows .
// __APPLE__