diff options
author | Max Kellermann <max@duempel.org> | 2008-09-17 21:08:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-17 21:08:06 +0200 |
commit | 85ef40fa57fd6b4b931394e82edbd2878966e3fd (patch) | |
tree | 8703c61097ab913072fca467f912983a4d4cbaca /src/screen.c | |
parent | 30c7bc007f594bbf84d872b5fb1f9475610f9683 (diff) | |
download | mpd-85ef40fa57fd6b4b931394e82edbd2878966e3fd.tar.gz mpd-85ef40fa57fd6b4b931394e82edbd2878966e3fd.tar.xz mpd-85ef40fa57fd6b4b931394e82edbd2878966e3fd.zip |
code style, indent with tabs IV
Follow the same code style als MPD itself.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/screen.c b/src/screen.c index 276500bd4..b6e2b7b79 100644 --- a/src/screen.c +++ b/src/screen.c @@ -543,15 +543,15 @@ ncurses_init(void) timeout(SCREEN_TIMEOUT); /* initialize mouse support */ #ifdef HAVE_GETMOUSE - if( options.enable_mouse ) + if (options.enable_mouse) mousemask(ALL_MOUSE_EVENTS, NULL); #endif - if( COLS<SCREEN_MIN_COLS || LINES<SCREEN_MIN_ROWS ) - { - fprintf(stderr, _("Error: Screen to small!\n")); - exit(EXIT_FAILURE); - } + if (COLS < SCREEN_MIN_COLS || LINES < SCREEN_MIN_ROWS) { + fprintf(stderr, _("Error: Screen to small!\n")); + exit(EXIT_FAILURE); + } + screen.mode = 0; screen.cols = COLS; screen.rows = LINES; @@ -604,16 +604,15 @@ ncurses_init(void) leaveok(screen.status_window.w, FALSE); keypad(screen.status_window.w, TRUE); - if( options.enable_colors ) - { - /* set background attributes */ - wbkgd(stdscr, COLOR_PAIR(COLOR_LIST)); - wbkgd(screen.main_window.w, COLOR_PAIR(COLOR_LIST)); - wbkgd(screen.top_window.w, COLOR_PAIR(COLOR_TITLE)); - wbkgd(screen.progress_window.w, COLOR_PAIR(COLOR_PROGRESSBAR)); - wbkgd(screen.status_window.w, COLOR_PAIR(COLOR_STATUS)); - colors_use(screen.progress_window.w, COLOR_PROGRESSBAR); - } + if (options.enable_colors) { + /* set background attributes */ + wbkgd(stdscr, COLOR_PAIR(COLOR_LIST)); + wbkgd(screen.main_window.w, COLOR_PAIR(COLOR_LIST)); + wbkgd(screen.top_window.w, COLOR_PAIR(COLOR_TITLE)); + wbkgd(screen.progress_window.w, COLOR_PAIR(COLOR_PROGRESSBAR)); + wbkgd(screen.status_window.w, COLOR_PAIR(COLOR_STATUS)); + colors_use(screen.progress_window.w, COLOR_PROGRESSBAR); + } refresh(); } |