Skip to content

Map editor#18

Merged
Asdow merged 4 commits into
masterfrom
MapEditor
Nov 8, 2022
Merged

Map editor#18
Asdow merged 4 commits into
masterfrom
MapEditor

Conversation

@Asdow
Copy link
Copy Markdown
Contributor

@Asdow Asdow commented Nov 8, 2022

No description provided.

Asdow added 4 commits November 7, 2022 18:03
Original implementation initializes a ridiculously wide buffer where item graphics and names are then copied to and is then shown in parts depending on what items should be visible in item tab.  When item counts go over ~32k in x-direction in pixel coordinates, the very low level drawing functions int16 variables overflow and item graphics are then drawn over each other.

It's now changed to blit item graphics and names by on demand depending on the item indices, which does not require a huge buffer and works regardless of the amount of items, since only 11 are visible at any one time and the x-coordinate stays well within INT16 limits
Improve readability
Removed unused clippingRect
@Asdow Asdow merged commit f06e855 into master Nov 8, 2022
@Asdow Asdow deleted the MapEditor branch January 25, 2023 11:10
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