Code for the first button (also happens with tga format):
Code: Select all
video::ITexture * newButton = app.VideoDriver()->getTexture("media/editor/new.bmp");
toolBar->addButton(GenerateGUIIDByState(GUI_TOOLBAR_BUTTON_NEW), 0, newButton, newButton, false);
Here is the source image for one of the buttons:
As you can see in the first image, the button images are offset in the toolbar. What can I do to fix this?