Hello Fonso,
fonso wrote:The devs are still pondering if it's appropriate to use the ZoomLevel enum for the smallmap. ZoomLevels was invented for the main viewport and some other code doesn't expect zoom-in levels. This is why I had to change some otherwise unrelated code in order to make zoom-in work. Some people don't like that. Others say zoom-in is unneeded.
These are two different, and unrelated things.
Re-use of blitter zoom levels at the smallmap creates a connection between unrelated code. It would introduce weird restrictions at the blitter and/or the smallmap side.
With respect to zoom-in, the step from most zoomed-in smallmap to most zoomed-out viewport doesn't seem very big, thus adding zoom-in to the map would duplicate viewport functionality.
fonso wrote:And the main viewport should eventually support zoom-in, too.
Perhaps, one day it will. But such decisions are graphics and/or hardware based, not based on smallmap.
fonso wrote:So I'd keep it as it is, but if it helps to get the patch accepted I'll change it to whatever a consensus among the devs says.
There is only one form of consensus and that is 'all devs must be happy with the patch'. That holds for *all* patches going in trunk, who developed the patch is not relevant.
fonso wrote:However, even after numerous changes to the smallmap the devs are still keeping that field so I guess I'd need to revert that change too in order to get smallmap-zoom accepted. There hasn't been a comment about that, though.
Why would there be? It does in-tile positioning.
fonso wrote:Alberth, you could have at least kept the usage of general ScaleByZoom functions.
I would not have been happy with that weird (in my view) connection. Other dev(s?) would not be happy. Did I mention that *all* devs must be happy for *all* patches going to trunk?
(yes, I have commit access, but that is just about the only difference.)
fonso wrote:Is that 6x zoom level really important enough to rewrite those? I think you have reinvented the wheel there.
Perhaps, but not making that connection with the blitter zoom gave me the freedom to add that zoom level.
fonso wrote:The last time I have merged them was on Saturday morning, about two hours before you committed your version of zoom out. Oh, what a pain ...
Sorry for that.
Update: Changes are not finished yet, it seems. Computations are not stable
