FLTK 1.4.0

* Fl_Preferences compatibility
This commit is contained in:
dave-w1hkj 2025-06-23 03:40:00 -05:00
parent c4f57cebfd
commit e500d771a3

View file

@ -97,7 +97,15 @@ status progStatus = {
void status::saveLastState()
{
#if FLDIGI_FLTK_API_MINOR < 4
Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME);
#else
Fl_Preferences flmsgpref(
FLMSG_dir.c_str(),
"w1hkj.com",
PACKAGE_TARNAME,
Fl_Preferences::C_LOCALE);
#endif
int mX = mainwindow->x();
int mY = mainwindow->y();
@ -188,7 +196,15 @@ void status::saveLastState()
void status::loadLastState()
{
Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME);
#if FLDIGI_FLTK_API_MINOR < 4
Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME);
#else
Fl_Preferences flmsgpref(
FLMSG_dir.c_str(),
"w1hkj.com",
PACKAGE_TARNAME,
Fl_Preferences::C_LOCALE);
#endif
if (flmsgpref.entryExists("version")) {
int i = 0;