rem: return Main(argc,argv);
add: for (i=1;i<argc;++i) { if (!strcmp(argv[i],"-res")) { i++; sscanf(argv[i],"%dx%d",&width,&height); } else if (!strcmp(argv[i],"-bpp")) { i++; sscanf(argv[i],"%d",&bpp); } else if (!strcmp(argv[i],"-fullscreen")) { gfxflags |= TFB_GFXFLAGS_FULLSCREEN; } else if (!strcmp(argv[i],"-opengl")) { gfxdriver = TFB_GFXDRIVER_SDL_OPENGL; gfxflags |= TFB_GFXFLAGS_BILINEAR_FILTERING; } else if (!strcmp(argv[i],"-linear")) { gfxflags &= ~TFB_GFXFLAGS_BILINEAR_FILTERING; } else if (!strcmp(argv[i],"-frequency")) { i++; sscanf(argv[i],"%d",&frequency); } }  TFB_InitGraphics (gfxdriver, gfxflags, width, height, bpp); TFB_InitSound (TFB_SOUNDDRIVER_SDL, 0, frequency); TFB_InitInput (TFB_INPUTDRIVER_SDL, 0);  TFB_CreateGamePlayThread ();  for (;;) { TFB_ProcessEvents (); TFB_FlushGraphics (); }  return 0;
context: main(int argc, char *argv[]){	// TODO: Currently every graphics module has to implement its own main function.	//       Should be divided later into smaller parts with common code.	return Main(argc,argv);}