Loading ...
Sorry, an error occurred while loading the content.
 

Color patch for GTK2 build (resend 2)

Expand Messages
  • Larson, David
    The GTK2 build swaps the red and blue foreground colors. The following patch fixes the problem. This patch is made on version 7.1.39. ... *************** ...
    Message 1 of 1 , Jul 26, 2007

      The GTK2 build swaps the red and blue foreground colors. The following patch fixes the problem. This patch is made on version 7.1.39.

       

      *** vim71/src/gui.c     2007-07-26 12:31:38.000000000 -0700

      --- gui.c       2007-07-26 12:31:22.000000000 -0700

      ***************

      *** 2132,2137 ****

      --- 2132,2141 ----

        #if defined(AMIGA) || defined(RISCOS)

              gui_mch_set_colors(fg_color, bg_color);

        #else

      + #ifdef HAVE_GTK2

      +         /* GTK2 has the red and blue foreground colors swapped */

      +         fg_color = ((fg_color & 0xFF)<<16) | (fg_color & 0xFF00) |

      +(fg_color >> 16);  #endif

              gui_mch_set_fg_color(fg_color);

              gui_mch_set_bg_color(bg_color);

        #endif

       

       


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---

    Your message has been successfully submitted and would be delivered to recipients shortly.