The theory behind the last code I posted is that it can work with a panel no matter where it's at on the screen. The four line version is great if all of your panels are centered, however sometimes this is not the case. The best case scenario is to create one set of panels at the maximum resolution(1600x1200 for example) and use eleroux version to not only scale down(and constrain proportions) but also correctly place it at the appropriate position. Rescaling something is easy, but the repositioning from one resolution to another can be a nightmare if you try to do it on an individual basis. The nice thing about it is that it does both and is ideal for an options screen where you change resolutions and then click apply. You can also use it on single panels, though by bypassing the scaleAllPanels function.
Anyway, there are a lot of ways to do this, but I prefer a method that doesn't restrict me to only having panels that are centered. I guess that's the trained graphic designer/artsy jackass in me talking.

Of course, I still haven't tested it enough. A complex panel might look terrible even by scaling down(because of lack of filtering). If it does look terrible, then I'll modify it to read a new set into the game per video_mode. I'll post this version later if I have to make these changes. It'll basically be a combo of the first post code and the more elegant eleroux code.
I'm just revisiting a lot of my old code and updating to current standard instruction usage. My goal is to get my title into an actual "game" state.
Perhaps my next contribution will be a combination of the more useful contributions. It'll be a "skeleton" game structure with a consistent naming convention. You just supply the art and change a few things(names of levels, art assets, etc), and go from there. Kind of like a templates system, but without all the excess crap. It would only focus on controls, animation, animation blending, camera types, panel resizing, menu system, and perhaps a new something or other to add a bit of spice. This will be a long ways off, though. My current non-burnout may subside, and I'll return to doing nothing again.
