MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003174VCMIGUI - Battlespublic2021-03-13 08:262023-04-12 23:30
ReporterGameslayer 
Assigned ToIvan 
PriorityhighSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinuxOSManjaroOS VersionManjaro
Product Version0.99 
Target VersionFixed in Version 
Summary0003174: Broken ground sprites in battle screen (Developer git)
DescriptionBattle screen ground sprites are broken and have a blue box instead of being transparent. Here is a screenshot
Steps To ReproduceGot into a the first battle at the castle door on the scenario All for One.
Additional InformationUsed the latest git version
TagsNo tags attached.
Attached Filespng file icon Screenshot_2021-03-13_18-03-16.png [^] (690,229 bytes) 2021-03-13 08:26

- Relationships
duplicate of 0003119resolvedIvan Blue rectangle around object on battleground 

-  Notes
(0008024)
Nullkiller (developer)
2021-03-13 09:28
edited on: 2021-03-13 09:29

Known issue. Somebody even investigated it and fixed. Something with SDL as far as I remember. On windows with prebuilt vcpkg it does not reproduce but when I built the latest vcpkg isntead I got the same blue rectangles.

Ask about it in slack if you want more details.

(0008025)
kdmcser (reporter)
2021-04-04 06:20

when use latest SDL, some images are in blue backgroud, I dont know why, but I use a track fix in client/gui/SDL_Extensions.cpp 827 :

void CSDL_Ext::setDefaultColorKeyPresize(SDL_Surface * surface)

{

    uint32_t key = mapColor(surface,Colors::DEFAULT_KEY_COLOR);

    auto & color = surface->format->palette->colors[key];



    // set color key only if exactly such color was found

    if (color.r == Colors::DEFAULT_KEY_COLOR.r && color.g == Colors::DEFAULT_KEY_COLOR.g && color.b == Colors::DEFAULT_KEY_COLOR.b) {

        SDL_SetColorKey(surface, SDL_TRUE, key);

+ surface->format->palette->colors[key].a = SDL_ALPHA_TRANSPARENT;

        }

}
(0008387)
Ivan (developer)
2022-12-17 14:11

Not reproducible in current git

- Issue History
Date Modified Username Field Change
2021-03-13 08:26 Gameslayer New Issue
2021-03-13 08:26 Gameslayer File Added: Screenshot_2021-03-13_18-03-16.png
2021-03-13 09:28 Nullkiller Note Added: 0008024
2021-03-13 09:29 Nullkiller Note Edited: 0008024 View Revisions
2021-04-04 06:20 kdmcser Note Added: 0008025
2022-04-03 19:43 Povelitel Relationship added duplicate of 0003119
2022-12-17 14:11 Ivan Note Added: 0008387
2022-12-17 14:11 Ivan Status new => feedback
2023-04-12 23:30 Ivan Status feedback => resolved
2023-04-12 23:30 Ivan Resolution open => fixed
2023-04-12 23:30 Ivan Assigned To => Ivan

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean