Skip to content

Fix DDS sheet code causing image offset issues - #2523

Open
vaisest wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
vaisest:fix-dds-sheets
Open

Fix DDS sheet code causing image offset issues#2523
vaisest wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
vaisest:fix-dds-sheets

Conversation

@vaisest

@vaisest vaisest commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

This PR fixes various padding issues in the program's graphics. These come from us assuming that the DDS sheets are filled edge to edge with no padding, which isn't true. This is fixed by taking the UI image size (if it exists), calculating UV coords using the size, and passing it to DrawImage to ignore the padding.

These are also added to the export files, which is why the loc is so high.

Steps taken to verify a working solution:

  • Old and current trees tested
  • No animations setting tested
  • Radius jewel tested
  • Nodes compared with in-game (they're 1 pixel off at most)

Before screenshot:

image

After screenshot:

image

In-game for reference:

image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant