From ac6954322a3067233e34f5cdae006b4c98e95ba7 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Wed, 16 Oct 2024 20:02:06 +0200 Subject: [PATCH] fix constant types c# --- .../ServicePoint/Constants.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/servicepoint_binding_cs/ServicePoint/Constants.cs b/crates/servicepoint_binding_cs/ServicePoint/Constants.cs index fea5c55..14ea940 100644 --- a/crates/servicepoint_binding_cs/ServicePoint/Constants.cs +++ b/crates/servicepoint_binding_cs/ServicePoint/Constants.cs @@ -5,20 +5,20 @@ namespace ServicePoint; public static class Constants { /// size of a single tile in one dimension - public const int TileSize = NativeMethods.SP_TILE_SIZE; + public const nuint TileSize = NativeMethods.SP_TILE_SIZE; /// tile count in the x-direction - public const int TileWidth = NativeMethods.SP_TILE_WIDTH; + public const nuint TileWidth = NativeMethods.SP_TILE_WIDTH; /// tile count in the y-direction - public const int TileHeight = NativeMethods.SP_TILE_SIZE; + public const nuint TileHeight = NativeMethods.SP_TILE_SIZE; /// screen width in pixels - public const int PixelWidth = TileWidth * TileSize; + public const nuint PixelWidth = TileWidth * TileSize; /// screen height in pixels - public const int PixelHeight = TileHeight * TileSize; + public const nuint PixelHeight = TileHeight * TileSize; /// pixel count on whole screen - public const int PixelCount = PixelWidth * PixelHeight; + public const nuint PixelCount = PixelWidth * PixelHeight; }