… | |
… | |
237 | |
237 | |
238 | offset -= font_height; |
238 | offset -= font_height; |
239 | |
239 | |
240 | if (offset < miny || offset > maxy) |
240 | if (offset < miny || offset > maxy) |
241 | continue; |
241 | continue; |
242 | |
242 | |
243 | if (opt_reverse) |
243 | #define LIN ((opt_reverse)?(listlen-lin-1):(lin)) |
244 | temp = detabificate (lines[listlen-lin-1].line); |
|
|
245 | else |
|
|
246 | temp = detabificate (lines[lin].line); |
244 | temp = detabificate (lines[LIN].line); |
247 | |
245 | |
248 | if (opt_shade) |
246 | if (opt_shade) |
249 | { |
247 | { |
250 | XSetForeground (disp, WinGC, black_color); |
248 | XSetForeground (disp, WinGC, black_color); |
251 | XDrawString (disp, root, WinGC, win_x + 2, win_y + offset + 2, |
249 | XDrawString (disp, root, WinGC, win_x + 2, win_y + offset + 2, |
252 | temp, strlen (temp)); |
250 | temp, strlen (temp)); |
253 | } |
251 | } |
254 | |
252 | |
255 | XSetForeground (disp, WinGC, lines[lin].color); |
253 | XSetForeground (disp, WinGC, lines[LIN].color); |
256 | XDrawString (disp, root, WinGC, win_x, win_y + offset, |
254 | XDrawString (disp, root, WinGC, win_x, win_y + offset, |
257 | temp, strlen (temp)); |
255 | temp, strlen (temp)); |
258 | |
256 | |
259 | free (temp); |
257 | free (temp); |
260 | } |
258 | } |