BACKENDS: Add getDefaultScaler and getDefaultScaleFactor to OSystem

This commit is contained in:
Cameron Cawley 2021-01-06 23:02:19 +00:00 committed by Eugene Sandulenko
parent 7ed5984e2f
commit da5d773924
9 changed files with 75 additions and 7 deletions

View file

@ -866,6 +866,28 @@ public:
*/
virtual int getStretchMode() const { return 0; }
/**
* Return the ID of the 'default' scaler.
*
* This mode is set by the client code when no user overrides
* are present (i.e. if no custom scaler is selected using the
* command line or a config file).
*
* @return ID of the 'default' scaler.
*/
virtual uint getDefaultScaler() const { return 0; }
/**
* Return the 'default' scale factor.
*
* This mode is set by the client code when no user overrides
* are present (i.e. if no custom shader mode is selected using
* the command line or a config file).
*
* @return The 'default' scale factor.
*/
virtual int getDefaultScaleFactor() const { return 1; }
/**
* Switch to the specified scaler.
*