From e759efacf6f7b2e452b299d7e4de3cbece313b6d Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Wed, 19 Jun 2024 12:05:54 +0300 Subject: [PATCH] [2.0.0-rc.2] Fix global options to be static. --- ReFuel.StbImage.csproj | 2 +- StbImage.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ReFuel.StbImage.csproj b/ReFuel.StbImage.csproj index d31a27f..9c8708d 100644 --- a/ReFuel.StbImage.csproj +++ b/ReFuel.StbImage.csproj @@ -13,7 +13,7 @@ True ReFuel.StbImage - 2.0-rc + 2.0-rc.2 STBI Authors, H. Utku Maden A C# wrapper for the ubiquitous stb_image.h and stb_image_write.h library. diff --git a/StbImage.cs b/StbImage.cs index c3256fc..e12e9df 100644 --- a/StbImage.cs +++ b/StbImage.cs @@ -157,7 +157,7 @@ namespace ReFuel.Stb /// /// -1 for auto, 0 through 5 to pick a filter. Higher is more. Not thread safe. /// - public int WriteForcePngFilter + public static int WriteForcePngFilter { get => Stbi.write_force_png_filter; set @@ -177,7 +177,7 @@ namespace ReFuel.Stb /// /// Higher is more. Defaults to 8. Not thread safe. /// - public int WritePngCompressionLevel + public static int WritePngCompressionLevel { get => Stbi.write_png_compression_level; set => Stbi.write_png_compression_level = value; @@ -189,7 +189,7 @@ namespace ReFuel.Stb /// /// Not thread safe. /// - public bool WriteTgaEnableRLE + public static bool WriteTgaEnableRLE { get => Stbi.write_tga_with_rle != 0; set => Stbi.write_tga_with_rle = value ? 1 : 0;