hi Hugh,
You saved me! (This was not the first time! Are you a superhero or something? :).
So, for other newbie-to-gamedev folks out there who might happen struggling with sizing/positioning and end up here, the big lesson is:
business dev: calc. new size, resize, re-position, InvalidateRect (as we know :), however,
game dev:
scale and position only, size and redraw are done 'automatically' by the environment! (at least for haxe/openfl/etc combo :)
Working with width/height as if they were read-only properties (
which they actually should be, though...) and change scaling, 'x' and 'y' only == things work like a charm!
Some side note to those slippin' in my boots: One also has to set
this.stage.align = openfl.display.StageAlign.TOP_LEFT; //TOP_LEFT, nothing else!
otherwise the "black bar" on the left will always
seem to be mispositioned / oversized in windowed mode (
as there's no "CENTER" alignment, I went for "TOP" the first time, which is also buggy, so in windowed-mode the game area was shifted outside the screen on the right, while it was centered perfectly in full screen - this was very confusing... and annoying after a while :).
Thank you for the help again!
Cheers,
Mark