|
Lines 3092-3102
Link Here
|
| 3092 |
XSetForeground(display, window.gc, tmpcolour[colour_idx++]); |
3092 |
XSetForeground(display, window.gc, tmpcolour[colour_idx++]); |
| 3093 |
} |
3093 |
} |
| 3094 |
} |
3094 |
} |
|
|
3095 |
|
| 3096 |
int g = round_to_int((double)by + h - specials[special_index].graph[j] * |
| 3097 |
(h - 1) / specials[special_index].graph_scale); |
| 3098 |
|
| 3095 |
/* this is mugfugly, but it works */ |
3099 |
/* this is mugfugly, but it works */ |
| 3096 |
XDrawLine(display, window.drawable, window.gc, |
3100 |
XDrawLine(display, window.drawable, window.gc, |
| 3097 |
cur_x + i + 1, by + h, cur_x + i + 1, |
3101 |
cur_x + i + 1, |
| 3098 |
round_to_int((double)by + h - specials[special_index].graph[j] * |
3102 |
specials[special_index].dotgraph ? g : by + h, |
| 3099 |
(h - 1) / specials[special_index].graph_scale)); |
3103 |
cur_x + i + 1, |
|
|
3104 |
g); |
| 3105 |
|
| 3100 |
if ((w - i) / ((float) (w - 2) / |
3106 |
if ((w - i) / ((float) (w - 2) / |
| 3101 |
(specials[special_index].graph_width)) > j |
3107 |
(specials[special_index].graph_width)) > j |
| 3102 |
&& j < MAX_GRAPH_DEPTH - 3) { |
3108 |
&& j < MAX_GRAPH_DEPTH - 3) { |
|
Lines 6015-6021
Link Here
|
| 6015 |
{ |
6021 |
{ |
| 6016 |
/* signal handler is light as a feather, as it should be. |
6022 |
/* signal handler is light as a feather, as it should be. |
| 6017 |
* we will poll g_signal_pending with each loop of conky |
6023 |
* we will poll g_signal_pending with each loop of conky |
| 6018 |
* and do any signal processing there, NOT here (except |
6024 |
* and do any signal processing there, NOT here (except |
| 6019 |
* SIGALRM because this is caused when conky is hanging) */ |
6025 |
* SIGALRM because this is caused when conky is hanging) */ |
| 6020 |
if(sig == SIGALRM) { |
6026 |
if(sig == SIGALRM) { |
| 6021 |
alarm_handler(); |
6027 |
alarm_handler(); |