comparison src/terminal.c @ 12634:94566ecb55f0 v8.0.1195

patch 8.0.1195: can't build on MS-Windows commit https://github.com/vim/vim/commit/9377df3ecd0bd3acb5d46cb8af7fe60867f247f2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 15 13:22:01 2017 +0200 patch 8.0.1195: can't build on MS-Windows Problem: Can't build on MS-Windows. Solution: Adjust #ifdef and add #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Oct 2017 13:30:05 +0200
parents b1a7e3968a31
children f58755eb453e
comparison
equal deleted inserted replaced
12633:c247f9a0e56a 12634:94566ecb55f0
2622 tmp = fg->red; 2622 tmp = fg->red;
2623 fg->red = fg->blue; 2623 fg->red = fg->blue;
2624 fg->blue = tmp; 2624 fg->blue = tmp;
2625 # endif 2625 # endif
2626 } 2626 }
2627 # ifdef FEAT_TERMRESPONSE
2627 else 2628 else
2628 term_get_fg_color(&fg->red, &fg->green, &fg->blue); 2629 term_get_fg_color(&fg->red, &fg->green, &fg->blue);
2630 # endif
2629 2631
2630 if (cterm_normal_bg_color > 0) 2632 if (cterm_normal_bg_color > 0)
2631 { 2633 {
2632 cterm_color2rgb(cterm_normal_bg_color - 1, bg); 2634 cterm_color2rgb(cterm_normal_bg_color - 1, bg);
2633 # if defined(WIN3264) && !defined(FEAT_GUI_W32) 2635 # if defined(WIN3264) && !defined(FEAT_GUI_W32)
2634 tmp = bg->red; 2636 tmp = bg->red;
2635 bg->red = bg->blue; 2637 bg->red = bg->blue;
2636 bg->blue = tmp; 2638 bg->blue = tmp;
2637 # endif 2639 # endif
2638 } 2640 }
2641 # ifdef FEAT_TERMRESPONSE
2639 else 2642 else
2640 term_get_bg_color(&bg->red, &bg->green, &bg->blue); 2643 term_get_bg_color(&bg->red, &bg->green, &bg->blue);
2644 # endif
2641 } 2645 }
2642 2646
2643 vterm_state_set_default_colors(vterm_obtain_state(vterm), fg, bg); 2647 vterm_state_set_default_colors(vterm_obtain_state(vterm), fg, bg);
2644 2648
2645 /* Required to initialize most things. */ 2649 /* Required to initialize most things. */