View Single Post
Unread 05-13-12, 01:35 PM   #3
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,149
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.
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
SDPhantom is offline   Reply With Quote