Ignore OSX -psn_N_NNNNN option.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
7a8ba8be1a
commit
b20688cfbf
1
CHANGES
1
CHANGES
@ -1,5 +1,6 @@
|
||||
CHANGES IN FLTK 1.1.2
|
||||
|
||||
- Fl::arg() now ignores the MacOS X -psn_N_NNNNN option.
|
||||
- Added another change to the WIN32 redraw handling for
|
||||
the MingW compilers.
|
||||
- Fl_File_Chooser didn't handle WIN32 home directories
|
||||
|
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_arg.cxx,v 1.5.2.8.2.12 2002/08/09 03:17:30 easysw Exp $"
|
||||
// "$Id: Fl_arg.cxx,v 1.5.2.8.2.13 2002/10/28 19:43:24 easysw Exp $"
|
||||
//
|
||||
// Optional argument initialization code for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -109,6 +109,14 @@ int Fl::arg(int argc, char **argv, int &i) {
|
||||
i++;
|
||||
return 1;
|
||||
}
|
||||
#ifdef __APPLE__
|
||||
// The Finder application in MacOS X passes the "-psn_N_NNNNN" option
|
||||
// to all apps...
|
||||
else if (strncmp(s, "psn_", 4) == 0) {
|
||||
i++;
|
||||
return 1;
|
||||
}
|
||||
#endif // __APPLE__
|
||||
|
||||
const char *v = argv[i+1];
|
||||
if (i >= argc-1 || !v)
|
||||
@ -412,5 +420,5 @@ int XParseGeometry(const char* string, int* x, int* y,
|
||||
#endif // ifdef WIN32
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_arg.cxx,v 1.5.2.8.2.12 2002/08/09 03:17:30 easysw Exp $".
|
||||
// End of "$Id: Fl_arg.cxx,v 1.5.2.8.2.13 2002/10/28 19:43:24 easysw Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user