X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fview.c;h=8f0dbcc087a5932931fe7c31db2f7d4d674d93c7;hb=5ae2721913c0d2adde0d65063e37a723bf8a0987;hp=c7d1771822aced3f898a746c5964594df029c8ff;hpb=cba932f979e14e49b63e06715e80f64d9ffe6e5e;p=ncurses.git diff --git a/test/view.c b/test/view.c index c7d17718..8f0dbcc0 100644 --- a/test/view.c +++ b/test/view.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * + * Copyright (c) 1998-2011,2012 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -50,7 +50,7 @@ * scroll operation worked, and the refresh() code only had to do a * partial repaint. * - * $Id: view.c,v 1.84 2011/12/10 15:42:34 tom Exp $ + * $Id: view.c,v 1.85 2012/06/09 20:29:33 tom Exp $ */ #include @@ -356,7 +356,7 @@ main(int argc, char *argv[]) if (has_colors()) { start_color(); init_pair(my_pair, COLOR_WHITE, COLOR_BLUE); - bkgd(COLOR_PAIR(my_pair)); + bkgd((chtype) COLOR_PAIR(my_pair)); } else { try_color = FALSE; }