Lines Matching defs:aspect
112 * Sort modes by refresh rate, aspect ratio (*), then resolution.
115 * (*) Note that the aspect ratio calculation treats "close" aspect ratios
122 int aspect, refresh, hbest, vbest, abest, atemp, rbest, rtemp;
131 aspect = (*preferred)->hdisplay * 100 / (*preferred)->vdisplay;
157 aspect = mtemp->hdisplay * 100 / mtemp->vdisplay;
164 /* Sort other modes by refresh rate, aspect ratio, then resolution */
180 /* Treat "close" aspect ratios as identical */
182 abs(aspect - atemp) < abs(aspect - abest)) {