-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the Correct Data Types for
AsepriteNinePatchProperties
and `Ase…
…pritePivotProperties` (#29) * Use correct data type AsepritePivotProperties and AsepriteNinPatchProperties both incorrectly used `long` instead of `int` * Bump version number to 1.7.5
- Loading branch information
1 parent
aac3f4a
commit 793ff80
Showing
5 changed files
with
486 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 28 additions & 28 deletions
56
source/AsepriteDotNet/Aseprite/Document/AsepriteNinePatchProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
// Copyright (c) Christopher Whitley. All rights reserved. | ||
// Licensed under the MIT license. | ||
// See LICENSE file in the project root for full license information | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
namespace AsepriteDotNet.Aseprite.Document; | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
internal struct AsepriteNinePatchProperties | ||
{ | ||
internal const int StructSize = sizeof(long) + // X | ||
sizeof(long) + // Y | ||
sizeof(uint) + // Width | ||
sizeof(uint); // Height | ||
|
||
[FieldOffset(0)] | ||
internal long X; | ||
|
||
[FieldOffset(8)] | ||
internal long Y; | ||
|
||
[FieldOffset(16)] | ||
internal uint Width; | ||
|
||
[FieldOffset(20)] | ||
internal uint Height; | ||
} | ||
// Copyright (c) Christopher Whitley. All rights reserved. | ||
// Licensed under the MIT license. | ||
// See LICENSE file in the project root for full license information | ||
using System.Runtime.InteropServices; | ||
namespace AsepriteDotNet.Aseprite.Document; | ||
[StructLayout(LayoutKind.Explicit)] | ||
internal struct AsepriteNinePatchProperties | ||
{ | ||
internal const int StructSize = sizeof(int) + // X | ||
sizeof(int) + // Y | ||
sizeof(uint) + // Width | ||
sizeof(uint); // Height | ||
[FieldOffset(0)] | ||
internal int X; | ||
[FieldOffset(4)] | ||
internal int Y; | ||
[FieldOffset(8)] | ||
internal uint Width; | ||
[FieldOffset(12)] | ||
internal uint Height; | ||
} |
40 changes: 20 additions & 20 deletions
40
source/AsepriteDotNet/Aseprite/Document/AsepritePivotProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
// Copyright (c) Christopher Whitley. All rights reserved. | ||
// Licensed under the MIT license. | ||
// See LICENSE file in the project root for full license information | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
namespace AsepriteDotNet.Aseprite.Document; | ||
|
||
[StructLayout(LayoutKind.Explicit)] | ||
internal struct AsepritePivotProperties | ||
{ | ||
internal const int StructSize = sizeof(long) + // X | ||
sizeof(long); // Y | ||
|
||
[FieldOffset(0)] | ||
internal long X; | ||
|
||
[FieldOffset(8)] | ||
internal long Y; | ||
} | ||
// Copyright (c) Christopher Whitley. All rights reserved. | ||
// Licensed under the MIT license. | ||
// See LICENSE file in the project root for full license information | ||
using System.Runtime.InteropServices; | ||
namespace AsepriteDotNet.Aseprite.Document; | ||
[StructLayout(LayoutKind.Explicit)] | ||
internal struct AsepritePivotProperties | ||
{ | ||
internal const int StructSize = sizeof(int) + // X | ||
sizeof(int); // Y | ||
[FieldOffset(0)] | ||
internal int X; | ||
[FieldOffset(4)] | ||
internal int Y; | ||
} |
Binary file not shown.
Oops, something went wrong.