mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Do not support bmp screenshots
This commit is contained in:
@ -83,7 +83,7 @@ namespace osu.Game.Configuration
|
|||||||
|
|
||||||
Set(OsuSetting.Version, string.Empty);
|
Set(OsuSetting.Version, string.Empty);
|
||||||
|
|
||||||
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Png);
|
Set(OsuSetting.ScreenshotFormat, ScreenshotFormat.Jpg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public OsuConfigManager(Storage storage) : base(storage)
|
public OsuConfigManager(Storage storage) : base(storage)
|
||||||
|
@ -7,7 +7,6 @@ namespace osu.Game.Configuration
|
|||||||
{
|
{
|
||||||
public enum ScreenshotFormat
|
public enum ScreenshotFormat
|
||||||
{
|
{
|
||||||
Bmp = 0, // TODO: Figure out the best way to hide this from the dropdown
|
|
||||||
[Description("JPG (web-friendly)")]
|
[Description("JPG (web-friendly)")]
|
||||||
Jpg = 1,
|
Jpg = 1,
|
||||||
[Description("PNG (lossless)")]
|
[Description("PNG (lossless)")]
|
||||||
|
@ -32,9 +32,6 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
switch (screenshotFormat.Value)
|
switch (screenshotFormat.Value)
|
||||||
{
|
{
|
||||||
case ScreenshotFormat.Bmp:
|
|
||||||
screenshotBitmap.Save(stream, ImageFormat.Bmp);
|
|
||||||
break;
|
|
||||||
case ScreenshotFormat.Png:
|
case ScreenshotFormat.Png:
|
||||||
screenshotBitmap.Save(stream, ImageFormat.Png);
|
screenshotBitmap.Save(stream, ImageFormat.Png);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user