*x_dpi_ptr = dpi; *y_dpi_ptr = dpi;
Bool XpuGetResolution( Display *pdpy, XPContext pcontext, long *dpi_ptr ){  /* Try to get the current page's resolution (pages may differ in resolution if the DDX supports this) */  if( XpuGetOneLongAttribute(pdpy, pcontext, XPPageAttr, "default-printer-resolution", dpi_ptr) == 1 )  {    return True;  }  /* Get document resolution */  if( XpuGetOneLongAttribute(pdpy, pcontext, XPDocAttr, "default-printer-resolution", dpi_ptr) == 1 )  {    return True;  }  return False;}