Mercurial > hg > xemacs-beta
comparison lwlib/xlwmenu.c @ 3157:44a63e4a23cd
[xemacs-hg @ 2005-12-22 13:58:15 by stephent]
Don't use C99 features (declarations after code). <871x05mesn.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Thu, 22 Dec 2005 13:58:16 +0000 |
parents | ad2f4ae9895b |
children | 174eb4da74fb |
comparison
equal
deleted
inserted
replaced
3156:a81c56d10bdd | 3157:44a63e4a23cd |
---|---|
2826 else | 2826 else |
2827 { /* color */ | 2827 { /* color */ |
2828 XColor xcolor; | 2828 XColor xcolor; |
2829 Visual *visual; | 2829 Visual *visual; |
2830 int ignore; | 2830 int ignore; |
2831 Colormap cmap; | |
2831 visual_info_from_widget ((Widget) mw, &visual, &ignore); | 2832 visual_info_from_widget ((Widget) mw, &visual, &ignore); |
2832 Colormap cmap = mw->core.colormap; | 2833 cmap = mw->core.colormap; |
2833 xcolor.pixel = mw->core.background_pixel; | 2834 xcolor.pixel = mw->core.background_pixel; |
2834 XQueryColor (dpy, cmap, &xcolor); | 2835 XQueryColor (dpy, cmap, &xcolor); |
2835 xcolor.red = (xcolor.red * 17) / 20; | 2836 xcolor.red = (xcolor.red * 17) / 20; |
2836 xcolor.green = (xcolor.green * 17) / 20; | 2837 xcolor.green = (xcolor.green * 17) / 20; |
2837 xcolor.blue = (xcolor.blue * 17) / 20; | 2838 xcolor.blue = (xcolor.blue * 17) / 20; |