Skip to content

Fix science report progress bar drawing#117

Merged
rajko-horvat merged 1 commit intorajko-horvat:masterfrom
VladimirMakeev:science-report-fix
Dec 17, 2025
Merged

Fix science report progress bar drawing#117
rajko-horvat merged 1 commit intorajko-horvat:masterfrom
VladimirMakeev:science-report-fix

Conversation

@VladimirMakeev
Copy link
Contributor

Description of Changes

This PR fixes drawing of lightbulb bitmaps used as a progress bar in science report popup.

Rationale behind Changes

Bug fix.

Suggested Testing Steps

Research progress should be drawn with lightbulbs, as expected.

Before fix After fix
report-before-fix report-after-fix

@rajko-horvat
Copy link
Owner

I was wondering about that, but I assumed that somewhere there is a memory corruption as I assumed that there must not be more than 32767 bitmaps defined. But there are... as the code currently just increments counter and doesn't recycle freed bitmap IDs.

@rajko-horvat rajko-horvat merged commit 930114d into rajko-horvat:master Dec 17, 2025
3 checks passed
@VladimirMakeev VladimirMakeev deleted the science-report-fix branch December 17, 2025 21:02
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.

2 participants