|
Lines 3061-3066
Link Here
|
| 3061 |
tmpcolour = do_gradient(w - 1, specials[special_index].last_colour, specials[special_index].first_colour); |
3061 |
tmpcolour = do_gradient(w - 1, specials[special_index].last_colour, specials[special_index].first_colour); |
| 3062 |
} |
3062 |
} |
| 3063 |
colour_idx = 0; |
3063 |
colour_idx = 0; |
|
|
3064 |
|
| 3065 |
int og, g = -1; // dmr's here.. |
| 3066 |
|
| 3064 |
for (i = w - 2; i > -1; i--) { |
3067 |
for (i = w - 2; i > -1; i--) { |
| 3065 |
if (specials[special_index].last_colour != 0 |
3068 |
if (specials[special_index].last_colour != 0 |
| 3066 |
|| specials[special_index].first_colour != 0) { |
3069 |
|| specials[special_index].first_colour != 0) { |
|
Lines 3092-3102
Link Here
|
| 3092 |
XSetForeground(display, window.gc, tmpcolour[colour_idx++]); |
3095 |
XSetForeground(display, window.gc, tmpcolour[colour_idx++]); |
| 3093 |
} |
3096 |
} |
| 3094 |
} |
3097 |
} |
|
|
3098 |
|
| 3099 |
og = g; |
| 3100 |
g = round_to_int((double)by + h - specials[special_index].graph[j] * |
| 3101 |
(h - 1) / specials[special_index].graph_scale); |
| 3102 |
|
| 3103 |
if (!~og) { |
| 3104 |
og = g; |
| 3105 |
} |
| 3106 |
|
| 3095 |
/* this is mugfugly, but it works */ |
3107 |
/* this is mugfugly, but it works */ |
| 3096 |
XDrawLine(display, window.drawable, window.gc, |
3108 |
XDrawLine(display, window.drawable, window.gc, |
| 3097 |
cur_x + i + 1, by + h, cur_x + i + 1, |
3109 |
cur_x + i + 1, |
| 3098 |
round_to_int((double)by + h - specials[special_index].graph[j] * |
3110 |
specials[special_index].dotgraph ? og : by + h, |
| 3099 |
(h - 1) / specials[special_index].graph_scale)); |
3111 |
cur_x + i + 1, |
|
|
3112 |
g); |
| 3113 |
|
| 3100 |
if ((w - i) / ((float) (w - 2) / |
3114 |
if ((w - i) / ((float) (w - 2) / |
| 3101 |
(specials[special_index].graph_width)) > j |
3115 |
(specials[special_index].graph_width)) > j |
| 3102 |
&& j < MAX_GRAPH_DEPTH - 3) { |
3116 |
&& j < MAX_GRAPH_DEPTH - 3) { |
|
Lines 6015-6021
Link Here
|
| 6015 |
{ |
6029 |
{ |
| 6016 |
/* signal handler is light as a feather, as it should be. |
6030 |
/* signal handler is light as a feather, as it should be. |
| 6017 |
* we will poll g_signal_pending with each loop of conky |
6031 |
* we will poll g_signal_pending with each loop of conky |
| 6018 |
* and do any signal processing there, NOT here (except |
6032 |
* and do any signal processing there, NOT here (except |
| 6019 |
* SIGALRM because this is caused when conky is hanging) */ |
6033 |
* SIGALRM because this is caused when conky is hanging) */ |
| 6020 |
if(sig == SIGALRM) { |
6034 |
if(sig == SIGALRM) { |
| 6021 |
alarm_handler(); |
6035 |
alarm_handler(); |