Nope, different ratios. 1024x768 is a 4:3 ratio. 1280x1024 is a 5:4 ratio.
Oh yea, you're right. :facepalm:
But you definitely need to take the aspect ratio into account in a mod like this. You have it working for 4:3 from what I understand, and just need to adjust it for the other popular aspect ratios - 5:4, 16:10, and 16:9. They're all going to require different tweaking.
Well so far I got a list of resolutions and which setting to use accordingly. There doesn't appear to be a clear system to it, then again, I might just be overlooking the obvious. I'll post it in a while, maybe you can make some sense of it.
This is what I mean, on the left the resolutions and on the right the needed 'screen width' to make everything line up properly (for the calculations, it doesn't matter what resolution you got, as long as the 'fake width' is of a matching value). If I had to guess I'd say it is more related to which
Menus folder is used (Menus -> 1280, Menus80 -> 1024 and Menus50 -> 640).
1280x960 -> 12801280x800 -> 12801280x768 -> 10241280x720 -> 10241152x864 -> 12801024x768 -> 1024848x480 -> 640800x600 -> 1024720x480 -> 640
-kyoma