c1a9d4d7a3
The problem was present in Blender 2.49, but it didn't produce any side effect. glScale was changing the texture matrix and the matrix was never been reset. That messes up with UI drawing.