mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Implemented .net 10 support. Updated all affected libraries and the code. Not testes yet.
This commit is contained in:
parent
5488140261
commit
28834e7a86
10 changed files with 107 additions and 94 deletions
|
|
@ -259,7 +259,8 @@ namespace MinecraftClient.ChatBots
|
|||
{
|
||||
using (var image = new MagickImage(fileName))
|
||||
{
|
||||
var size = new MagickGeometry(Config.Resize_To, Config.Resize_To);
|
||||
uint resizeTo = (uint)Math.Max(Config.Resize_To, 1);
|
||||
var size = new MagickGeometry(resizeTo, resizeTo);
|
||||
size.IgnoreAspectRatio = true;
|
||||
|
||||
image.Resize(size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue