parent
323e7d0193
commit
9f3851871e
3 changed files with 24 additions and 0 deletions
|
|
@ -428,3 +428,10 @@ bufimage(Display *d, int n)
|
|||
return p;
|
||||
}
|
||||
|
||||
int
|
||||
scalesize(Display *d, int n)
|
||||
{
|
||||
if(d == nil || d->dpi <= DefaultDPI)
|
||||
return n;
|
||||
return (n*d->dpi+DefaultDPI/2)/DefaultDPI;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue