* Workaround for ticket #6794.

Libprint requires the horizontal and vertical resolution
  to be the same. For now use the maximum resolution when
  rendering the page bands.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39327 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer
2010-11-06 18:09:23 +00:00
parent 7bab78133d
commit 442f4337c1
@@ -155,6 +155,7 @@ GPCapabilityExtractor::ResolutionParameter(const char* name, const char* key,
{
bool isDefault = fDefaultKey == key;
BaseCap* capability;
int resolution;
switch (fState) {
case kExtractResolutionParameter:
@@ -167,8 +168,12 @@ GPCapabilityExtractor::ResolutionParameter(const char* name, const char* key,
break;
}
// TODO remove this workaround when libprint supports x != y too
// for now use the maximum resolution to render the page bands
resolution = max_c(x, y);
capability = new ResolutionCap(displayName, isDefault, fIndex,
x, y);
resolution, resolution);
AddCapability(fCapabilities->fResolutions, capability, key);
break;