[fixed] Missing Icons in File Dialog Window
Posted: Tue Jul 03, 2007 8:11 pm
Sometime after the Irrlicht 1.2 release, the file/directory icons next to the files disappeared unless you select a file. Thinking about things further, I figured that the colors just got swapped so I checked the source code. The code that draws the listbox is in CGUIListBox.cpp in draw() and the original code is:
I recompiled the dll just swapping the EGDC_ICON_HIGH_LIGHT, EGDC_ICON values and the icons were properly visible again. Do the color definitions for these enums need to be swapped?
Code: Select all
IconBank->draw2DSprite( (u32)Items[i].icon, iconPos, &clientClip, skin->getColor((i==Selected) ? EGDC_ICON_HIGH_LIGHT : EGDC_ICON), (i==Selected) ? selectTime : 0 , (i==Selected) ? os::Timer::getTime() : 0, false, true);
I recompiled the dll just swapping the EGDC_ICON_HIGH_LIGHT, EGDC_ICON values and the icons were properly visible again. Do the color definitions for these enums need to be swapped?