Menu

window initial position and size

2016-09-27
2016-09-30
  • thunderchero

    thunderchero - 2016-09-27

    Hi Gho,

    on previous versions I would have this set to 0 - 0 - 0 - 0 and desktop center selected. This way window would just start the same resolution as installed.

    now it will start at 800 x 600 regardless of version installed.

    game: Birth of the Federation
    original resolution 800 x 600
    edited available resolutions 1024 x 768, 1366 x 768

    so is DxWnd reading something I forgot/missed to edit or is DxWnd set window to 800 x 600?

    here is short log (everything selected) using 1366 x 768 version. hope it is helpful
    http://www.armadafleetcommand.com/lib/botf/images/dxwnd.log

     
  • gho

    gho - 2016-09-27

    Known bug, sadly .... W.I.P.

     
    • suckmysock

      suckmysock - 2016-09-27

      he actually means R.I.P

       
  • gho

    gho - 2016-09-27

    dnsbench is close enough ....
    this coordinate stuff has grown so complicated that no matter what you touch you'll end up in a mess.
    I hoped in a quick fix, but the dream soon became a nightmare.

     
  • thunderchero

    thunderchero - 2016-09-27

    no problem until a fix is found, I will use version 2.03.73

     
  • gho

    gho - 2016-09-27

    This fix seems working, but it requires the setting of the Video / "Lock win coordinates" flag. A difference with previous releases is that now the window coordinates can be independent from the actual values (maybe it's something to fix...) so it is possible to have DxWnd blitting to a given area and the window elsewhere, that after all is a full mess.
    So,
    1) replace the dll
    2) set the "Lock win coordinates" flag
    3) tell me if now it works fine!

     
    • suckmysock

      suckmysock - 2016-09-27

      hmm.. it's even works fine without checking "Lock win coordinates" here. Not sure why, probably need to test more, but it is a good sight because there are some games conflict with that Lock win flag.

       
  • gho

    gho - 2016-09-27

    A better fix that has no need for the "Lock win coordinates" flag

     
  • thunderchero

    thunderchero - 2016-09-27

    test of patch 2; displays the proper size now but it is 50/50 if mouse postion is correct. when I select a button nothing happens, if I move mouse approx 300 px to left and up button will highlight and be selectable.

    test of patch1 with "Lock win coordinates" set, window correct size no mouse issues. without "Lock win coordinates" correct size of window but only displays 800 x 600 in upper left corner of window (only part of screen showing).

     
    • gho

      gho - 2016-09-28

      I apologize for the trouble, the latest patch seemed quite ok in general, maybe there is some specific problem here. I'll make some testing about your case, but in the meanwhile I was urged to publish a fix that, sadly, won't please you yet.

       
  • gho

    gho - 2016-09-28

    Game installed and tested, it crashes unless you set the Hook / "No hook updates" flag (this will provide me another interesting case to analyze!). Mouse control is ok at native resolution (800 x 600 ?) but I saw no way to change the game resolution. How do you make it?

     

    Last edit: gho 2016-09-28
  • gho

    gho - 2016-09-29

    DxWnd had a huge bug in center positioning to non primary monitors. Fixed that one, I tried the original game at 800x600 and the 1024x768 patch on two different monitors and 0,0,0,0 setting: the window placement was ok, I'm not digging in previous releases but if you find troubles you can update the current release with this patch here in attach.
    BTW the patch also seems to fix (I need to be very prudent when I say something about things I didn't fully understand...) the "No hook updates" crash. I'll be happy to get a positive feedback about this: now you should be able to set / unset the flag and the game should work in any case.
    P.s. though the window position was ok on second monitor (placed left to primary, then with necative x coordinates!) the game area was completely black. I don't know if this depends on different video capabilities or on some mistake in DxWnd logic, the blitting doesn't work also if you start the game on the primary and move the window on the secondary. Some games work, some don't. It is something to be investigated.
    bye
    GHO

     

    Last edit: gho 2016-09-29
  • thunderchero

    thunderchero - 2016-09-30

    after a few quick test window initial position and size looks to be working correctly

    as for testing No hook updates I also had no problem on or off

     

Log in to post a comment.

MongoDB Logo MongoDB