Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
removed misleading comment
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
289b508
..
e22ea7a
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-350,9
+350,9
@@
applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) {
/* adjust for aspect limits */
if(c->mina > 0 && c->maxa > 0) {
if(c->maxa < (float)*w / *h)
/* adjust for aspect limits */
if(c->mina > 0 && c->maxa > 0) {
if(c->maxa < (float)*w / *h)
- *w = *h * c->maxa + 0.5;
/* -Os double upcast workaround */
+ *w = *h * c->maxa + 0.5;
else if(c->mina < (float)*h / *w)
else if(c->mina < (float)*h / *w)
- *h = *w * c->mina + 0.5;
/* -Os double upcast workaround */
+ *h = *w * c->mina + 0.5;
}
if(baseismin) { /* increment calculation requires this */
*w -= c->basew;
}
if(baseismin) { /* increment calculation requires this */
*w -= c->basew;