aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-11-30 13:56:27 +0000
committerJason Rumney2007-11-30 13:56:27 +0000
commit8d05ec5127d5ca4958c99fb06d6874508f2f4730 (patch)
treeba205061d6642f005dcc3e2bef7471ac66e43464 /src
parentfc0eafe10aa572dd4755e5f670c7e0e220f1272e (diff)
downloademacs-8d05ec5127d5ca4958c99fb06d6874508f2f4730.tar.gz
emacs-8d05ec5127d5ca4958c99fb06d6874508f2f4730.zip
(map_tty_color, tty_color_name): Remove special case for WINDOWSNT.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 36bbacb84ce..c4b19c71bb1 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1463,10 +1463,6 @@ tty_color_name (f, idx)
1463 if (idx == FACE_TTY_DEFAULT_BG_COLOR) 1463 if (idx == FACE_TTY_DEFAULT_BG_COLOR)
1464 return build_string (unspecified_bg); 1464 return build_string (unspecified_bg);
1465 1465
1466#ifdef WINDOWSNT
1467 return vga_stdcolor_name (idx);
1468#endif
1469
1470 return Qunspecified; 1466 return Qunspecified;
1471} 1467}
1472 1468
@@ -7464,13 +7460,11 @@ map_tty_color (f, face, idx, defaulted)
7464 { 7460 {
7465 pixel = load_color (f, face, color, idx); 7461 pixel = load_color (f, face, color, idx);
7466 7462
7467#if defined (MSDOS) || defined (WINDOWSNT) 7463#ifdef MSDOS
7468 /* If the foreground of the default face is the default color, 7464 /* If the foreground of the default face is the default color,
7469 use the foreground color defined by the frame. */ 7465 use the foreground color defined by the frame. */
7470#ifdef MSDOS
7471 if (FRAME_MSDOS_P (f)) 7466 if (FRAME_MSDOS_P (f))
7472 { 7467 {
7473#endif /* MSDOS */
7474 if (pixel == default_pixel 7468 if (pixel == default_pixel
7475 || pixel == FACE_TTY_DEFAULT_COLOR) 7469 || pixel == FACE_TTY_DEFAULT_COLOR)
7476 { 7470 {
@@ -7490,10 +7484,8 @@ map_tty_color (f, face, idx, defaulted)
7490 face->lface[idx] = tty_color_name (f, pixel); 7484 face->lface[idx] = tty_color_name (f, pixel);
7491 *defaulted = 1; 7485 *defaulted = 1;
7492 } 7486 }
7493#ifdef MSDOS 7487 }
7494 } 7488#endif /* MSDOS */
7495#endif
7496#endif /* MSDOS or WINDOWSNT */
7497 } 7489 }
7498 7490
7499 if (foreground_p) 7491 if (foreground_p)