Rev 1717 | Rev 1721 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1717 | Rev 1718 | ||
---|---|---|---|
Line 266... | Line 266... | ||
266 | if (x < status_start) |
266 | if (x < status_start) |
267 | return -1; |
267 | return -1; |
268 | 268 | ||
269 | if (x >= status_start + (STATUS_WIDTH+STATUS_SPACE)*CONSOLE_COUNT) |
269 | if (x >= status_start + (STATUS_WIDTH+STATUS_SPACE)*CONSOLE_COUNT) |
270 | return -1; |
270 | return -1; |
271 | if (((x - status_start) % (STATUS_WIDTH+STATUS_SPACE)) >= STATUS_WIDTH) |
271 | if (((x - status_start) % (STATUS_WIDTH+STATUS_SPACE)) < STATUS_SPACE) |
272 | return -1; |
272 | return -1; |
273 | 273 | ||
274 | return (x-status_start) / (STATUS_WIDTH+STATUS_SPACE); |
274 | return (x-status_start) / (STATUS_WIDTH+STATUS_SPACE); |
275 | } |
275 | } |
276 | 276 |