1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 02:23:40 +08:00

Do not support bmp screenshots

This commit is contained in:
TocoToucan
2018-03-14 12:57:55 +03:00
Unverified
parent 0e69ab1615
commit 25f738c4ae
3 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ namespace osu.Game.Configuration
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)")]
-3
View File
@@ -32,9 +32,6 @@ namespace osu.Game.Graphics
switch (screenshotFormat.Value)
{
case ScreenshotFormat.Bmp:
screenshotBitmap.Save(stream, ImageFormat.Bmp);
break;
case ScreenshotFormat.Png:
screenshotBitmap.Save(stream, ImageFormat.Png);
break;