equal
deleted
inserted
replaced
270 h = c->maxh; |
270 h = c->maxh; |
271 if(c->incw) |
271 if(c->incw) |
272 w -= (w - c->basew) % c->incw; |
272 w -= (w - c->basew) % c->incw; |
273 if(c->inch) |
273 if(c->inch) |
274 h -= (h - c->baseh) % c->inch; |
274 h -= (h - c->baseh) % c->inch; |
275 if(w <= 0 || h <= 0) |
275 } |
276 return; |
276 if(w <= 0 || h <= 0) |
277 } |
277 return; |
278 /* offscreen appearance fixes */ |
278 /* offscreen appearance fixes */ |
279 if(x > sw) |
279 if(x > sw) |
280 x = sw - w - 2 * c->border; |
280 x = sw - w - 2 * c->border; |
281 if(y > sh) |
281 if(y > sh) |
282 y = sh - h - 2 * c->border; |
282 y = sh - h - 2 * c->border; |