mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-27 06:38:30 -05:00
yuzu-qt: Enable specifying screenshot resolution
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
#include <QVector>
|
||||
#include "common/common_types.h"
|
||||
#include "common/settings.h"
|
||||
#include "common/settings_enums.h"
|
||||
|
||||
using Settings::Category;
|
||||
using Settings::Setting;
|
||||
@ -127,8 +128,14 @@ struct Values {
|
||||
// logging
|
||||
Setting<bool> show_console{linkage, false, "showConsole", Category::Ui};
|
||||
|
||||
// Screenshots
|
||||
Setting<bool> enable_screenshot_save_as{linkage, true, "enable_screenshot_save_as",
|
||||
Category::Screenshots};
|
||||
Setting<u32> screenshot_height{linkage, 0, "screenshot_height", Category::Screenshots};
|
||||
Setting<u32> screenshot_width{linkage, 0, "screenshot_width", Category::Screenshots};
|
||||
Setting<Settings::ScreenshotAspectRatio> screenshot_aspect_ratio{
|
||||
linkage, Settings::ScreenshotAspectRatio::Auto, "screenshot_aspect_ratio",
|
||||
Category::Screenshots};
|
||||
|
||||
QString roms_path;
|
||||
QString symbols_path;
|
||||
@ -187,6 +194,9 @@ struct Values {
|
||||
|
||||
extern Values values;
|
||||
|
||||
u32 CalculateWidth(u32 height, Settings::AspectRatio ratio);
|
||||
Settings::AspectRatio ConvertScreenshotRatioToRatio(Settings::ScreenshotAspectRatio ratio);
|
||||
|
||||
} // namespace UISettings
|
||||
|
||||
Q_DECLARE_METATYPE(UISettings::GameDir*);
|
||||
|
Reference in New Issue
Block a user