The full screen resolution is 1920*1080 (about 1920*1050 under Ubuntu in Window mode ; I use the window mode because I have 3 monitors and in full screen mode, 0AD is displayed on the first monitor and not in the second monitor... this is bug). The minimap is a square. My patch keep the ratio of the minimap. You can not display the minimap as a rectangle.
I added a button to change the size of minimap.
As you can see in minimap_panel.xml (http://www.pyryp.com/0ad/minimapZoomAndAlliedFlag/minimap_panel.xml), there is now 3 size levels (small, medium and big).
In menu.js (http://www.pyryp.com/0ad/minimapZoomAndAlliedFlag/menu.js), I writed a function with these resize levels :
* Update to modify the display size of the minimap panel + allied flag (Nicolas BOILLOT 02/05/2017)
if (minimapNewSizeLevel==0) // Mini (default)
minimapPanel_wh=212; // width=height
else if (minimapNewSizeLevel==1) // Medium
minimapPanel_wh=550; // width=height
else if (minimapNewSizeLevel==2) // Big
minimapPanel_wh=800; // width=height
error("Unknown minimap size level.");
var sizeMiniMap=minimapPanel_left+" 100%-"+minimapPanel_wh+" "+minimapPanel_right+" 100%";
The small size is 212*212 pixel (default size, the same defined in Alpha 21)
The medium size is 550*500 pixels.
The big size level is 800*800 pixels.
If you click on the magnifying glass button, It will change the scale level (small, medium, large, then small, medium, large...).
You can bind an hotkey for this button :
Exemple : hotkey.minimapview.bigpanel = "k"
When I press the key "k", the minimap size level change....
So, I press 2 times to go from the small level to the big level...
NB : I moved the minimap panel to the right of the screen because I don't want that the position of the magnifying glass button change. Like this, you can click 1, 2 or 3 time without moving the mouse.
At the beginning of the game, I let the minimap in small level... After some minutes, I put it in medium size and play like this. The small level is too small and I can not see motion of my friends or attacks... The medium size is perfect to play. When we talk strategy with Skype, I expand the minimap to big size level... We move the allied flag and I listen with care.
So, I don't want a auto-expandable minimap because sometime I need medium size, sometime big size.... It depend of the game.
You can see some snapshot on http://www.pyryp.com/0ad/minimapZoomAndAlliedFlag/help.htm