Home | History | Annotate | Download | only in hw

Lines Matching refs:dpi

62     int      dpi;
87 qemu_put_be32(f, s->dpi);
125 s->dpi = qemu_get_be32(f);
214 pixels_to_mm(int pixels, int dpi)
216 /* dpi = dots / inch
217 ** inch = dots / dpi
218 ** mm / 25.4 = dots / dpi
219 ** mm = (dots * 25.4)/dpi
221 return (int)(0.5 + 25.4 * pixels / dpi);
567 ret = pixels_to_mm( ds_get_width(s->ds), s->dpi );
572 ret = pixels_to_mm( ds_get_height(s->ds), s->dpi );
654 s->dpi = 165; /* XXX: Find better way to get actual value ! */