mirror of https://github.com/ppy/osu
Do not support bmp screenshots
This commit is contained in:
parent
0e69ab1615
commit
25f738c4ae
|
@ -83,7 +83,7 @@ protected override void InitialiseDefaults()
|
|||
|
||||
Set(OsuSetting.Version, string.Empty);
|
||||
|
||||
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Png);
|
||||
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Jpg);
|
||||
}
|
||||
|
||||
public OsuConfigManager(Storage storage) : base(storage)
|
||||
|
|
|
@ -7,7 +7,6 @@ namespace osu.Game.Configuration
|
|||
{
|
||||
public enum ScreenshotFormat
|
||||
{
|
||||
Bmp = 0, // TODO: Figure out the best way to hide this from the dropdown
|
||||
[Description("JPG (web-friendly)")]
|
||||
Jpg = 1,
|
||||
[Description("PNG (lossless)")]
|
||||
|
|
|
@ -32,9 +32,6 @@ public void TakeScreenshot()
|
|||
|
||||
switch (screenshotFormat.Value)
|
||||
{
|
||||
case ScreenshotFormat.Bmp:
|
||||
screenshotBitmap.Save(stream, ImageFormat.Bmp);
|
||||
break;
|
||||
case ScreenshotFormat.Png:
|
||||
screenshotBitmap.Save(stream, ImageFormat.Png);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue