Whenever you call texture:SetTexCoord() to trim an image, you need to set the texture container to the new size too using texture:SetSize() or a combination of texture:SetWidth() and texture:SetHeight() or the image stretches like that. Note the container size is in pixels while the texture coords are as a percentage.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
|