Toolbar buttons offset
Posted: Tue Aug 23, 2005 4:28 pm
I added a toolbar and some buttons.
Code for the first button (also happens with tga format):
Here is what shows up:
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?
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?