Code

configure.ac: add more optimization flags
[ncmpc.git] / src / hscroll.c
index 164f178fa3fdff826897e1234f60a88c3bc6f1fd..a5ee63322ae43e3f215d1fc9e8fc927427dac98b 100644 (file)
@@ -1,24 +1,25 @@
 /* ncmpc (Ncurses MPD Client)
  * (c) 2004-2010 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
-
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
-
+ *
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
+ */
 
 #include "hscroll.h"
 #include "charset.h"
+#include "ncfix.h"
 #include "glib_compat.h"
 
 #include <assert.h>
@@ -87,7 +88,7 @@ hscroll_set(struct hscroll *hscroll, unsigned x, unsigned y, unsigned width,
 
        /* obtain the ncurses attributes and the current color, store
           them */
-       wattr_get(hscroll->w, &hscroll->attrs, &hscroll->pair, NULL);
+       fix_wattr_get(hscroll->w, &hscroll->attrs, &hscroll->pair, NULL);
 
        hscroll->text = g_strdup(text);
        hscroll->offset = 0;
@@ -121,7 +122,7 @@ hscroll_draw(struct hscroll *hscroll)
        assert(hscroll->text != NULL);
 
        /* set stored attributes and color */
-       wattr_get(hscroll->w, &old_attrs, &old_pair, NULL);
+       fix_wattr_get(hscroll->w, &old_attrs, &old_pair, NULL);
        wattr_set(hscroll->w, hscroll->attrs, hscroll->pair, NULL);
 
        /* scroll the string, and draw it */