remove jpeg quality setting, use 92 for quality

This commit is contained in:
Poliwrath 2020-07-24 02:26:45 -04:00
parent 4e0f16a450
commit 05235c70c5
3 changed files with 3 additions and 10 deletions

View File

@ -106,7 +106,6 @@ namespace osu.Game.Configuration
Set(OsuSetting.Version, string.Empty);
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Jpg);
Set(OsuSetting.ScreenshotJpegQuality, 75, 0, 100);
Set(OsuSetting.ScreenshotCaptureMenuCursor, false);
Set(OsuSetting.SongSelectRightMouseScroll, false);
@ -213,7 +212,6 @@ namespace osu.Game.Configuration
ShowConvertedBeatmaps,
Skin,
ScreenshotFormat,
ScreenshotJpegQuality,
ScreenshotCaptureMenuCursor,
SongSelectRightMouseScroll,
BeatmapSkins,

View File

@ -34,7 +34,6 @@ namespace osu.Game.Graphics
public IBindable<bool> CursorVisibility => cursorVisibility;
private Bindable<ScreenshotFormat> screenshotFormat;
private Bindable<int> screenshotJpegQuality;
private Bindable<bool> captureMenuCursor;
[Resolved]
@ -53,7 +52,6 @@ namespace osu.Game.Graphics
this.storage = storage.GetStorageForDirectory(@"screenshots");
screenshotFormat = config.GetBindable<ScreenshotFormat>(OsuSetting.ScreenshotFormat);
screenshotJpegQuality = config.GetBindable<int>(OsuSetting.ScreenshotJpegQuality);
captureMenuCursor = config.GetBindable<bool>(OsuSetting.ScreenshotCaptureMenuCursor);
shutter = audio.Samples.Get("UI/shutter");
@ -122,7 +120,9 @@ namespace osu.Game.Graphics
break;
case ScreenshotFormat.Jpg:
image.SaveAsJpeg(stream, new JpegEncoder { Quality = screenshotJpegQuality.Value });
const int jpeg_quality = 92;
image.SaveAsJpeg(stream, new JpegEncoder { Quality = jpeg_quality });
break;
default:

View File

@ -31,11 +31,6 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
LabelText = "Screenshot format",
Bindable = config.GetBindable<ScreenshotFormat>(OsuSetting.ScreenshotFormat)
},
new SettingsSlider<int>
{
LabelText = "JPEG Screenshot quality",
Bindable = config.GetBindable<int>(OsuSetting.ScreenshotJpegQuality)
},
new SettingsCheckbox
{
LabelText = "Show menu cursor in screenshots",