diff options
| author | Karoly Lorentey | 2006-04-01 16:37:26 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-04-01 16:37:26 +0000 |
| commit | 5bcee7efff25b675da6da4d6dd31c6bbc822b957 (patch) | |
| tree | b898b9ac65601355dc9f7cf018042bdb3591c1ac /src/msdos.c | |
| parent | ce593f6e6b85e58206264cad983c796ce8dd41a2 (diff) | |
| download | emacs-5bcee7efff25b675da6da4d6dd31c6bbc822b957.tar.gz emacs-5bcee7efff25b675da6da4d6dd31c6bbc822b957.zip | |
Fix previous commit.
* src/frame.c (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
* src/gtkutil.c (xg_create_frame_widgets): Ditto.
* src/macfns.c (x_set_mouse_color): Ditto.
* src/macfns.c (x_make_gc): Ditto.
* src/msdos.c (ScreenVisualBell): Ditto.
* src/msdos.c (internal_terminal_init): Ditto.
* src/w32term.c (x_free_frame_resources): Ditto.
* src/xfns.c (x_window): Ditto.
* src/xterm.c (x_scroll_bar_create): Ditto.
* src/xterm.c (x_scroll_bar_set_handle): Ditto.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-545
Diffstat (limited to 'src/msdos.c')
| -rw-r--r-- | src/msdos.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/msdos.c b/src/msdos.c index 9ac34e008c4..636ac75d000 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -508,8 +508,8 @@ ScreenVisualBell (void) | |||
| 508 | { | 508 | { |
| 509 | /* This creates an xor-mask that will swap the default fore- and | 509 | /* This creates an xor-mask that will swap the default fore- and |
| 510 | background colors. */ | 510 | background colors. */ |
| 511 | do_visible_bell (((the_only_x_display.foreground_pixel | 511 | do_visible_bell (((FRAME_FOREGROUND_PIXEL (SELECTED_FRAME ()) |
| 512 | ^ the_only_x_display.background_pixel) | 512 | ^ FRAME_BACKGROUND_PIXEL (SELECTED_FRAME ())) |
| 513 | * 0x11) & 0x7f); | 513 | * 0x11) & 0x7f); |
| 514 | } | 514 | } |
| 515 | #endif | 515 | #endif |
| @@ -2531,8 +2531,8 @@ internal_terminal_init () | |||
| 2531 | initial_screen_colors[0] = initial_screen_colors[1] = -1; | 2531 | initial_screen_colors[0] = initial_screen_colors[1] = -1; |
| 2532 | 2532 | ||
| 2533 | bzero (&the_only_x_display, sizeof the_only_x_display); | 2533 | bzero (&the_only_x_display, sizeof the_only_x_display); |
| 2534 | the_only_x_display.background_pixel = 7; /* White */ | 2534 | FRAME_BACKGROUND_PIXEL (SELECTED_FRAME ()) = 7; /* White */ |
| 2535 | the_only_x_display.foreground_pixel = 0; /* Black */ | 2535 | FRAME_FOREGROUND_PIXEL (SELECTED_FRAME ()) = 0; /* Black */ |
| 2536 | bright_bg (); | 2536 | bright_bg (); |
| 2537 | colors = getenv ("EMACSCOLORS"); | 2537 | colors = getenv ("EMACSCOLORS"); |
| 2538 | if (colors && strlen (colors) >= 2) | 2538 | if (colors && strlen (colors) >= 2) |
| @@ -2543,13 +2543,13 @@ internal_terminal_init () | |||
| 2543 | else if (isxdigit (colors[0])) | 2543 | else if (isxdigit (colors[0])) |
| 2544 | colors[0] -= (isupper (colors[0]) ? 'A' : 'a') - 10; | 2544 | colors[0] -= (isupper (colors[0]) ? 'A' : 'a') - 10; |
| 2545 | if (colors[0] >= 0 && colors[0] < 16) | 2545 | if (colors[0] >= 0 && colors[0] < 16) |
| 2546 | the_only_x_display.foreground_pixel = colors[0]; | 2546 | FRAME_FOREGROUND_PIXEL (SELECTED_FRAME ()) = colors[0]; |
| 2547 | if (isdigit (colors[1])) | 2547 | if (isdigit (colors[1])) |
| 2548 | colors[1] -= '0'; | 2548 | colors[1] -= '0'; |
| 2549 | else if (isxdigit (colors[1])) | 2549 | else if (isxdigit (colors[1])) |
| 2550 | colors[1] -= (isupper (colors[1]) ? 'A' : 'a') - 10; | 2550 | colors[1] -= (isupper (colors[1]) ? 'A' : 'a') - 10; |
| 2551 | if (colors[1] >= 0 && colors[1] < 16) | 2551 | if (colors[1] >= 0 && colors[1] < 16) |
| 2552 | the_only_x_display.background_pixel = colors[1]; | 2552 | FRAME_BACKGROUND_PIXEL (SELECTED_FRAME ()) = colors[1]; |
| 2553 | } | 2553 | } |
| 2554 | the_only_x_display.font = (XFontStruct *)1; /* must *not* be zero */ | 2554 | the_only_x_display.font = (XFontStruct *)1; /* must *not* be zero */ |
| 2555 | the_only_x_display.display_info.mouse_face_mouse_frame = NULL; | 2555 | the_only_x_display.display_info.mouse_face_mouse_frame = NULL; |