Skip to content

Commit

Permalink
Merge #603
Browse files Browse the repository at this point in the history
603: Tidier fix r=wmww a=AlanGriffiths



Co-authored-by: Alan Griffiths <[email protected]>
  • Loading branch information
bors[bot] and AlanGriffiths committed Sep 19, 2018
2 parents 19c7c42 + 2fd103f commit a1dc983
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions examples/example-server-lib/sw_splash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,8 @@ auto create_window(MirConnection* connection, mir::client::Surface const& surfac
mir_output_is_enabled(output))
{
id = mir_output_get_id(output);

MirOutputMode const* mode = mir_output_get_current_mode(output);
width = mir_output_mode_get_width(mode);
height = mir_output_mode_get_height(mode);

switch (mir_output_get_orientation(output))
{
case mir_orientation_left:
case mir_orientation_right:
std::swap(width, height);
default:;
}
width = mir_output_get_logical_width(output);
height = mir_output_get_logical_height(output);
}
});

Expand Down

0 comments on commit a1dc983

Please sign in to comment.