[ekg2-commit] r3834 - trunk/plugins/ncurses: trunk/plugins/ncurses/old.c
SVN commit
svn w toxygen.net
Pon, 3 Mar 2008, 13:28:02 CET
Author: darkjames
Date: 2008-03-03 13:28:02 +0100 (Mon, 03 Mar 2008)
New Revision: 3834
Modified:
trunk/plugins/ncurses/old.c
Log:
spot rule, ncurses_fixchar()
Modified: trunk/plugins/ncurses/old.c
===================================================================
--- trunk/plugins/ncurses/old.c 2008-03-03 11:46:31 UTC (rev 3833)
+++ trunk/plugins/ncurses/old.c 2008-03-03 12:28:02 UTC (rev 3834)
@@ -1983,19 +1983,11 @@
* wyświetla w danym okienku znak, biorąc pod uwagę znaki ,,niewyświetlalne''.
* gdy attr A_UNDERLINE wtedy podkreslony
*/
-static void print_char(WINDOW *w, int y, int x, CHAR_T ch, int attr)
-{
+static void print_char(WINDOW *w, int y, int x, CHAR_T ch, int attr) {
+ ch = ncurses_fixchar(ch, &attr);
+
wattrset(w, attr);
- if (ch < 32) {
- wattrset(w, A_REVERSE | attr);
- ch += 64;
- }
-
- if (ch >= 128 && ch < 160) {
- ch = '?';
- wattrset(w, A_REVERSE | attr);
- }
#if USE_UNICODE
if (config_use_unicode)
mvwaddnwstr(w, y, x, &ch, 1);
Więcej informacji o liście dyskusyjnej ekg2-commit