February 23, 20215 yr Eric finally got me over the weekend to revisit how the game sizes windows. I had re-worked the logic in 2013 and since then haven't really understood why as players we continued to see windows get cut off, the Formation Editor platform list dialog not showing any buttons for instance (since the window was drawn too narrow so the buttons were invisible). That has now been fixed in 2021.005. https://harpgamer.com/harpforum/topic/29035-current-files/ . My 2013 code was good right up until I did a logical AND instead of a logical OR. That foiled my attempt to have the window restoring code skip the size, only restore the left top corner position and let Windows manage the size of the window. Wrong: SWP_NOZORDER & SWP_NOSIZE, Right: SWP_NOZORDER | SWP_NOSIZE. Eric, your pain and frustration had some positive effect! This will save countless players a similar experience. A couple of more notes which are also summarized in the ReleaseNotes.txt file... The game still thinks it lives in a single monitor world whose upper-left corner is at pixel position 0,0. Myself and many (most?) of you run on multiple monitors, some of which have different scaling factors. The game prefers to run on the primary monitor but I regularly successfully run it on non-primary monitors, some of which have negative pixel positions. However, that is not always a great experience as some of the game dialogs insist on opening on a different monitor than the main game window. If you are suffering mightily with such constraints, let us know and we'll consider re-prioritizing teaching the game about multiple monitors.
Create an account or sign in to comment