projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 5.7 - patch 20101113
[ncurses.git]
/
test
/
savescreen.c
diff --git
a/test/savescreen.c
b/test/savescreen.c
index b413f0dd71fc3fb23099f8c1961fe3911770d239..3d6f248cd42d6e7285c5a9209d69fb6f66b8d313 100644
(file)
--- a/
test/savescreen.c
+++ b/
test/savescreen.c
@@
-26,7
+26,7
@@
* authorization. *
****************************************************************************/
/*
* authorization. *
****************************************************************************/
/*
- * $Id: savescreen.c,v 1.1
2 2010/05/01 22:04:08
tom Exp $
+ * $Id: savescreen.c,v 1.1
3 2010/11/13 21:18:00
tom Exp $
*
* Demonstrate save/restore functions from the curses library.
* Thomas Dickey - 2007/7/14
*
* Demonstrate save/restore functions from the curses library.
* Thomas Dickey - 2007/7/14
@@
-189,8
+189,8
@@
main(int argc, char *argv[])
if (has_colors()) {
start_color();
for (ch = 0; ch < COLOR_PAIRS; ++ch) {
if (has_colors()) {
start_color();
for (ch = 0; ch < COLOR_PAIRS; ++ch) {
- short pair =
ch % COLOR_PAIRS
;
- init_pair(pair, COLOR_WHITE,
ch % COLORS
);
+ short pair =
(short) (ch % COLOR_PAIRS)
;
+ init_pair(pair, COLOR_WHITE,
(short) (ch % COLORS)
);
}
}
}
}
@@
-289,8
+289,8
@@
main(int argc, char *argv[])
}
++which;
if (has_colors()) {
}
++which;
if (has_colors()) {
- short pair =
which % COLOR_PAIRS
;
- bkgd(COLOR_PAIR(pair));
+ short pair =
(short) (which % COLOR_PAIRS)
;
+ bkgd(
(chtype)
COLOR_PAIR(pair));
}
} else {
beep();
}
} else {
beep();