MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000982VCMIGUI - Battlespublic2012-05-27 10:202014-05-30 17:41
ReporterTow 
Assigned ToIvan 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version0.89 
Summary0000982: Borders around creature portraits in stack queue are not visible
DescriptionStart battle using resolution higher than 800x600, so the full version of stack queue is present. It displays its background and creatures but it's missing background ( CHRROP.pcx ).

The problem seems related to recent blitting reorganziation.

In the CStackQueue::StackBox::showAll method the line:
    CSDL_Ext::blit8bppAlphaTo24bpp(bg, NULL, to, &temp_rect);
is supposed to blit border image.
However, if you test it (ie. by putting SDL_SaveBMP(to, "to.bmp") after it) it apparently is still not visible.

If I comment out the blit8bppAlphaTo24bpp line and restore the following blitAt line, issue is gone. It is not what I would expect. I suspect it may be 0/255 opaque/transparent interpretation mismatch.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002571)
Ivan (developer)
2012-05-27 11:52

Interesting. I've changed alpha to match values in SDL:
#define SDL_ALPHA_OPAQUE 255
#define SDL_ALPHA_TRANSPARENT 0

But indexed images loaded via SDL have color.unused set to zero. I suppose we have to set it manually.

I agree that blit8to24 is broken (will fix) but why you're using it here? If blitting via SDL works we should use it instead.
(0002572)
Tow (developer)
2012-05-27 13:23

> I agree that blit8to24 is broken (will fix) but why you're using it here? If blitting via SDL works we should use it instead.

You're right, there is no good reason to use 8to24 blit there. I'll change that later. Consider this report to be about alpha values mismatch in our graphics. I just noticed the issue on that particular example. :)
(0002573)
Ivan (developer)
2012-05-27 14:08

fixed in rev 2721

- Issue History
Date Modified Username Field Change
2012-05-27 10:20 Tow New Issue
2012-05-27 10:20 Tow Status new => assigned
2012-05-27 10:20 Tow Assigned To => Ivan
2012-05-27 10:20 Tow Product Version 0.89 => 0.dev
2012-05-27 11:52 Ivan Note Added: 0002571
2012-05-27 13:23 Tow Note Added: 0002572
2012-05-27 14:08 Ivan Note Added: 0002573
2012-05-27 14:08 Ivan Status assigned => resolved
2012-05-27 14:08 Ivan Fixed in Version => 0.89
2012-05-27 14:08 Ivan Resolution open => fixed
2014-05-30 17:41 beegee Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean