Skip to content
  • Derek Foreman's avatar
    shell: fix weston_output_mode_switch() usage · 69c6273f
    Derek Foreman authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    Calling weston_output_mode_switch() with WESTON_MODE_SWITCH_RESTORE_NATIVE
    will result in the mode being set "back" to the passed in mode - so the
    passed mode should be the native mode.
    
    Additionally, weston_output_mode_switch() should be called when
    output->original_mode is non-NULL (which indicates we had a temporary
    mode set).  The comparison to current_mode results in a lot of
    log chatter.
    
    Acked-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    69c6273f