Simplify querying the default monitor profile as suggested by Hombre57.

This commit is contained in:
Adam Reichold
2015-12-06 02:30:18 +01:00
parent 22bffabe7f
commit 5f59156bb0
2 changed files with 6 additions and 6 deletions

View File

@@ -89,8 +89,8 @@ public:
static cmsHPROFILE createFromMatrix (const double matrix[3][3], bool gamma = false, const Glib::ustring& name = Glib::ustring());
// Main monitors standard profile name, from OS
const Glib::ustring& getDefaultMonitorProfile () const;
void findDefaultMonitorProfile ();
cmsHPROFILE getDefaultMonitorProfile () const;
cmsHPROFILE workingSpace (const Glib::ustring& name) const;
cmsHPROFILE workingSpaceGamma (const Glib::ustring& name) const;
@@ -129,9 +129,9 @@ inline ProfileContent::~ProfileContent ()
delete [] data;
}
inline const Glib::ustring& ICCStore::getDefaultMonitorProfile () const
inline cmsHPROFILE ICCStore::getDefaultMonitorProfile () const
{
return defaultMonitorProfile;
return getProfile (defaultMonitorProfile);
}
inline std::uint8_t ICCStore::getInputIntents (const Glib::ustring &name) const