//bugs.freedesktop.org/show_bug.cgi?id=2789) attachment #2187
(https://bugs.freedesktop.org/attachment.cgi?id=2187) Fix Xvfb to honor the "-dpi" option (instead of using a hardcoded value of 100DPI).
This commit is contained in:
parent
45bcb8e22a
commit
ac18f8e308
|
@ -855,9 +855,15 @@ static Bool
|
|||
vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
|
||||
{
|
||||
vfbScreenInfoPtr pvfb = &vfbScreens[index];
|
||||
int dpix = 100, dpiy = 100;
|
||||
int dpix = monitorResolution, dpiy = monitorResolution;
|
||||
int ret;
|
||||
char *pbits;
|
||||
|
||||
if (dpix == 0)
|
||||
dpix = 100;
|
||||
|
||||
if (dpiy == 0)
|
||||
dpiy = 100;
|
||||
|
||||
pvfb->paddedBytesWidth = PixmapBytePad(pvfb->width, pvfb->depth);
|
||||
pvfb->bitsPerPixel = vfbBitsPerPixel(pvfb->depth);
|
||||
|
|
Loading…
Reference in New Issue
Block a user