I've been making a few changes to the codebase for LoM and came across an... interesting... problem. In particular, I can't seem to get image Alpha's to look/work properly. To describe the problem further:
I've been working a bit on the GUI framework, particularly Windows to allow for skinning support. This required that I modify the static member variable 'ImageRect border;' to 'Image *border[9];'. This works -- but the image transparency broke. So despite the fact that the code is indeed setting the image alpha using image->setAlpha(float) but clearly the transparency isn't working properly.
I have a logger message printing out information regarding all of this and it tells me that the alpha value for the image is indeed at the value I set it to:
Code: Select all
[19:14:49.97] Window::setGuiAlpha: Alpha Value 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[0] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[1] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[2] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[3] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[4] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[5] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[6] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[7] Alpha: 0.745055
[19:14:49.97] Window::setGuiAlpha: Border[8] Alpha: 0.745055
Any clues?
P.S.
These are links to the SVN code on SourceForge. It may be useful to find an explanation for why it isn't working properly:
window.cpp
window.h