about summary refs log tree commit diff stats
path: root/src/ui/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/screen.c')
-rw-r--r--src/ui/screen.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/ui/screen.c b/src/ui/screen.c
index 2e6faf4b..8a676082 100644
--- a/src/ui/screen.c
+++ b/src/ui/screen.c
@@ -44,7 +44,8 @@
 #include "config/preferences.h"
 
 int
-_screen_line_row(int win_pos, int mainwin_pos) {
+_screen_line_row(int win_pos, int mainwin_pos)
+{
     int wrows = getmaxy(stdscr);
 
     if (win_pos == 1) {
@@ -54,7 +55,7 @@ _screen_line_row(int win_pos, int mainwin_pos) {
     if (win_pos == 2) {
         int row = 1;
         if (mainwin_pos == 1) {
-            row = wrows-3;
+            row = wrows - 3;
         }
 
         return row;
@@ -63,19 +64,19 @@ _screen_line_row(int win_pos, int mainwin_pos) {
     if (win_pos == 3) {
         int row = 2;
         if (mainwin_pos == 1 || mainwin_pos == 2) {
-            row = wrows-2;
+            row = wrows - 2;
         }
 
         return row;
     }
 
-    return wrows-1;
+    return wrows - 1;
 }
 
 int
 screen_titlebar_row(void)
 {
-    ProfWinPlacement *placement = prefs_get_win_placement();
+    ProfWinPlacement* placement = prefs_get_win_placement();
     int row = _screen_line_row(placement->titlebar_pos, placement->mainwin_pos);
     prefs_free_win_placement(placement);
 
@@ -85,7 +86,7 @@ screen_titlebar_row(void)
 int
 screen_statusbar_row(void)
 {
-    ProfWinPlacement *placement = prefs_get_win_placement();
+    ProfWinPlacement* placement = prefs_get_win_placement();
     int row = _screen_line_row(placement->statusbar_pos, placement->mainwin_pos);
     prefs_free_win_placement(placement);
 
@@ -95,7 +96,7 @@ screen_statusbar_row(void)
 int
 screen_inputwin_row(void)
 {
-    ProfWinPlacement *placement = prefs_get_win_placement();
+    ProfWinPlacement* placement = prefs_get_win_placement();
     int row = _screen_line_row(placement->inputwin_pos, placement->mainwin_pos);
     prefs_free_win_placement(placement);
 
@@ -105,8 +106,8 @@ screen_inputwin_row(void)
 int
 screen_mainwin_row_start(void)
 {
-    ProfWinPlacement *placement = prefs_get_win_placement();
-    int row = placement->mainwin_pos-1;
+    ProfWinPlacement* placement = prefs_get_win_placement();
+    int row = placement->mainwin_pos - 1;
     prefs_free_win_placement(placement);
 
     return row;
@@ -115,7 +116,7 @@ screen_mainwin_row_start(void)
 int
 screen_mainwin_row_end(void)
 {
-    ProfWinPlacement *placement = prefs_get_win_placement();
+    ProfWinPlacement* placement = prefs_get_win_placement();
     int wrows = getmaxy(stdscr);
     int row = wrows - (5 - placement->mainwin_pos);
     prefs_free_win_placement(placement);