mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
remove jpeg quality setting, use 92 for quality
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user