git.shiar.nl
/
netris.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e12b5c4
)
code cosmetics
author
Mischa POSLAWSKY
<netris@shiar.org>
Sun, 11 Mar 2007 14:24:47 +0000
(15:24 +0100)
committer
Mischa POSLAWSKY
<netris@shiar.org>
Sun, 11 Mar 2007 14:24:47 +0000
(15:24 +0100)
curses.c
patch
|
blob
|
history
diff --git
a/curses.c
b/curses.c
index b60433e97e86134e402444fb5dc8cc8518a7453c..b1604b0b51384a272a99fae1c64867d92f14a1ec 100644
(file)
--- a/
curses.c
+++ b/
curses.c
@@
-403,8
+403,7
@@
static void block_draw_2(int y, int x, unsigned char type)
else {
#ifdef HAVE_NCURSES
if (Sets.standout) {
else {
#ifdef HAVE_NCURSES
if (Sets.standout) {
- if (haveColor) attrset(COLOR_PAIR(type & 15));
- else attrset(A_REVERSE);
+ attrset(haveColor ? COLOR_PAIR(type & 15) : A_REVERSE);
}
#endif
switch (Sets.drawstyle) {
}
#endif
switch (Sets.drawstyle) {
@@
-471,13
+470,11
@@
static void block_draw_1(int y, int x, unsigned char type)
if (type == BT_none) addch(' ');
else if (type == BT_shadow) addch(':');
else {
if (type == BT_none) addch(' ');
else if (type == BT_shadow) addch(':');
else {
- if (Sets.standout) {
#ifdef HAVE_NCURSES
#ifdef HAVE_NCURSES
- if (haveColor)
- attrset(COLOR_PAIR(type & 15));
- else attrset(A_REVERSE);
-#endif
+ if (Sets.standout) {
+ attrset(haveColor ? COLOR_PAIR(type & 15) : A_REVERSE);
}
}
+#endif
if ((type & 192) == 64)
addch('[');
else if ((type & 192) == 128)
if ((type & 192) == 64)
addch('[');
else if ((type & 192) == 128)