pioneerspacesim/pioneer — pull request #1470 by fluffyfreak (2012-09-02 15:46:16+00:00)
Title: Fix the virtual screen size of control panel icons

Adie123 asked me to fix the icon scaling for the control panel icons, I've done a little bit more than that, the control panel itself is now a fixed size (800, 80) too so it can be updated to a higher resolution image.

I've tested the changes (of course) and can't find any technical issue with them. Stylistically I considered adding the SetRenderDimensions method as a virtual too a class higher up the inheritance graph but I couldn't find a place I was actually happy with putting it!

Commit message:
Added SetRenderDimensions methods to GuiImageButton, GuiImageRadioButton, GuiMultiStateImageButton classes.
Used the above SetRenderDimensions methods to fix the size of icon and cpanel rendering wherever I could find it in the code.
Tested by doubling the size of icons and things using Paint.NET and seeing if it worked! All checked out ok so far.