serenity icon indicating copy to clipboard operation
serenity copied to clipboard

Add a basic .tga file loader to LibGfx

Open 06needhamt opened this issue 2 years ago • 8 comments

This pull request adds a basic .tga file loader to LibGfx. Currently it can only handle Uncompressed BGR files with a bit depth of 24 and 32 bits per pixel. This is also my first major contribution to SerenityOS with the aim of getting familiar with the API structure. So all comments are welcome

06needhamt avatar Aug 17 '22 19:08 06needhamt

Screenshot of it working :^) tga_serenity

06needhamt avatar Aug 17 '22 19:08 06needhamt

Hello!

One or more of the commit messages in this PR do not match the SerenityOS code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why. Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.

BuggieBot avatar Sep 02 '22 18:09 BuggieBot

@AtkinsSJ Thank you for the review. I have addressed all of your comments

06needhamt avatar Sep 03 '22 15:09 06needhamt

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Sep 26 '22 00:09 stale[bot]

@06needhamt are you ok to make that last change? Would be a huge shame to let stalebot close this.

AtkinsSJ avatar Sep 26 '22 08:09 AtkinsSJ

@AtkinsSJ Sorry I've been really busy and I forgot about this. Should hopefully have time this weekend. Will this comment stop it from being closed?

06needhamt avatar Sep 26 '22 16:09 06needhamt

@AtkinsSJ Sorry I've been really busy and I forgot about this. Should hopefully have time this weekend. Will this comment stop it from being closed?

No problem! Yeah, any comments will scare Stalebot away for another few weeks.

AtkinsSJ avatar Sep 27 '22 11:09 AtkinsSJ

@06needhamt are you ok to make that last change? Would be a huge shame to let stalebot close this.

@AtkinsSJ I have finally gotten around to making the requested change along with some validation after reading the header.

06needhamt avatar Oct 30 '22 13:10 06needhamt

Alternatively to having a custom Error type, you could remove the String::format() part, and output the extra information in dbgln().

AtkinsSJ avatar Nov 01 '22 12:11 AtkinsSJ

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Nov 22 '22 13:11 stale[bot]

This pull request has been closed because it has not had recent activity. Feel free to re-open if you wish to still contribute these changes. Thank you for your contributions!

stale[bot] avatar Nov 30 '22 06:11 stale[bot]