Skip to content
  • rswindell's avatar
    Fix (or work-around?) ScalingFactor issue reported by ogg in fsxNet->FSX BBS: · dca11a6f
    rswindell authored
    The ScalingFactor would always (or usually) reset to 1 and have to be reset
    e.g. to 2, by resizing the window manually, every time SyncTERM was run.
    
    I found that by calling textmode() *after* setscaling() rather than before
    fixed this issue (at least in SDL mode on Ubuntu Linux). Another "fix" that
    worked inserting a small (100ms) delay between the calls to textmode() and
    setscaling() - so there appears to have been a race condition and calling
    setccaling() too soon after text mode() would fail to change the window
    size successfully. Reordering these calls seems to work 100% of the time
    without any additional delays. <shrug> Deuce would likely know "why" better
    than I.
    dca11a6f