Mercurial > vim
comparison src/gui.c @ 856:8cd729851562 v7.0g
updated for version 7.0g
author | vimboss |
---|---|
date | Sun, 30 Apr 2006 18:54:39 +0000 |
parents | f4d8553715f7 |
children | b933657f7c9d |
comparison
equal
deleted
inserted
replaced
855:d2a4f08396fe | 856:8cd729851562 |
---|---|
4454 guicolor_T pixel; | 4454 guicolor_T pixel; |
4455 { | 4455 { |
4456 long_u rgb = gui_mch_get_rgb(pixel); | 4456 long_u rgb = gui_mch_get_rgb(pixel); |
4457 | 4457 |
4458 return (int)( (((rgb >> 16) & 0xff) * 299) | 4458 return (int)( (((rgb >> 16) & 0xff) * 299) |
4459 + (((rgb >> 8) & 0xff) * 587) | 4459 + (((rgb >> 8) & 0xff) * 587) |
4460 + ((rgb & 0xff) * 114)) / 1000; | 4460 + ((rgb & 0xff) * 114)) / 1000; |
4461 } | 4461 } |
4462 | 4462 |
4463 #if defined(FEAT_GUI_X11) || defined(PROTO) | 4463 #if defined(FEAT_GUI_X11) || defined(PROTO) |
4464 void | 4464 void |
4465 gui_new_scrollbar_colors() | 4465 gui_new_scrollbar_colors() |