summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-06-03 17:34:35 +0200
committerBastien Nocera <hadess@hadess.net>2014-06-05 17:16:41 +0200
commit27fa69a0cab55c6387f9aedd4b129275e1c9e154 (patch)
treecb18305884f1297cde2f14aca99f3c99f1d08e21
parent4ab4c1821957d78cbce8babb7384423f44447ba4 (diff)
downloadgnome-control-center-27fa69a0cab55c6387f9aedd4b129275e1c9e154.tar.gz
display: Move apply_rotation_to_geometry()
https://bugzilla.gnome.org/show_bug.cgi?id=731166
-rw-r--r--panels/display/cc-display-panel.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 58999977f..95988dd5c 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -521,6 +521,21 @@ on_screen_changed (CcDisplayPanel *panel)
}
static void
+apply_rotation_to_geometry (GnomeRROutputInfo *output, int *w, int *h)
+{
+ GnomeRRRotation rotation;
+
+ rotation = gnome_rr_output_info_get_rotation (output);
+ if ((rotation & GNOME_RR_ROTATION_90) || (rotation & GNOME_RR_ROTATION_270))
+ {
+ int tmp;
+ tmp = *h;
+ *h = *w;
+ *w = tmp;
+ }
+}
+
+static void
realign_outputs_after_resolution_change (CcDisplayPanel *self, GnomeRROutputInfo *output_that_changed, int old_width, int old_height, GnomeRRRotation old_rotation)
{
/* We find the outputs that were below or to the right of the output that
@@ -620,21 +635,6 @@ lay_out_outputs_horizontally (CcDisplayPanel *self)
}
static void
-apply_rotation_to_geometry (GnomeRROutputInfo *output, int *w, int *h)
-{
- GnomeRRRotation rotation;
-
- rotation = gnome_rr_output_info_get_rotation (output);
- if ((rotation & GNOME_RR_ROTATION_90) || (rotation & GNOME_RR_ROTATION_270))
- {
- int tmp;
- tmp = *h;
- *h = *w;
- *w = tmp;
- }
-}
-
-static void
get_geometry (GnomeRROutputInfo *output, int *w, int *h)
{
if (gnome_rr_output_info_is_active (output))