Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: FreeImage dependency update #2531

Merged
merged 4 commits into from
Dec 6, 2024
Merged

Conversation

Jklawreszuk
Copy link
Collaborator

PR Details

This PR mainly removes the duplicate FreeImageNET source code, which is not used anywhere.
In addition, I decided to refactor code and remove the useless compatibility with System.Drawing.Bitmap, which is also not used anywhere.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

@Eideren
Copy link
Collaborator

Eideren commented Dec 1, 2024

There's a bunch of tabs/space mismatch in this PR, can't merge it as is sadly

@@ -2790,14 +2779,12 @@ public TimeSpan? TimeStamp
get
{
FIURational[] stamp = GetTagArray<FIURational>("GPSTimeStamp");
if ((stamp == null) || stamp.Length != 3)
if (stamp is not { Length: 3 })
Copy link
Collaborator

@Eideren Eideren Dec 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one is just more confusing than the previous one; the negative and positive are merged into the same comparison.

Besides those two comments it looks quite good, thanks @Jklawreszuk !

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem , I think it is more readable but I understand that it can be confusing, so I reverted it 😀

@Jklawreszuk
Copy link
Collaborator Author

Huh... Maybe Rider uses spaces instead of tabs when I fixed the warnings. Now I formatted with VSCode, so I hope that will do

@Eideren Eideren changed the title FreeImage dependency update refactor: FreeImage dependency update Dec 6, 2024
@Eideren Eideren merged commit 3d3cf09 into stride3d:master Dec 6, 2024
13 checks passed
@Jklawreszuk Jklawreszuk deleted the freeimage branch December 6, 2024 17:19
@Eideren
Copy link
Collaborator

Eideren commented Dec 6, 2024

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants