it's all nsz's hard investigation effort, hail nsz! ;)
6877a000
2 file(s) · +5 −5
| 1 | 1 | # dwm version |
|
| 2 | - | VERSION = 5.6 |
|
| 2 | + | VERSION = 5.7 |
|
| 3 | 3 | ||
| 4 | 4 | # Customize below to fit your system |
|
| 5 | 5 |
| 350 | 350 | /* adjust for aspect limits */ |
|
| 351 | 351 | if(c->mina > 0 && c->maxa > 0) { |
|
| 352 | 352 | if(c->maxa < (float)*w / *h) |
|
| 353 | - | *w = *h * c->maxa; |
|
| 353 | + | *w = *h * c->maxa + 0.5; /* -Os double upcast workaround */ |
|
| 354 | 354 | else if(c->mina < (float)*h / *w) |
|
| 355 | - | *h = *w * c->mina; |
|
| 355 | + | *h = *w * c->mina + 0.5; /* -Os double upcast workaround */ |
|
| 356 | 356 | } |
|
| 357 | 357 | if(baseismin) { /* increment calculation requires this */ |
|
| 358 | 358 | *w -= c->basew; |
|
| 1807 | 1807 | else |
|
| 1808 | 1808 | c->minw = c->minh = 0; |
|
| 1809 | 1809 | if(size.flags & PAspect) { |
|
| 1810 | - | c->mina = (float)size.min_aspect.y / (float)size.min_aspect.x; |
|
| 1811 | - | c->maxa = (float)size.max_aspect.x / (float)size.max_aspect.y; |
|
| 1810 | + | c->mina = (float)size.min_aspect.y / size.min_aspect.x; |
|
| 1811 | + | c->maxa = (float)size.max_aspect.x / size.max_aspect.y; |
|
| 1812 | 1812 | } |
|
| 1813 | 1813 | else |
|
| 1814 | 1814 | c->maxa = c->mina = 0.0; |
|