* 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:
@@ -155,6 +155,7 @@ GPCapabilityExtractor::ResolutionParameter(const char* name, const char* key,
|
|||||||
{
|
{
|
||||||
bool isDefault = fDefaultKey == key;
|
bool isDefault = fDefaultKey == key;
|
||||||
BaseCap* capability;
|
BaseCap* capability;
|
||||||
|
int resolution;
|
||||||
|
|
||||||
switch (fState) {
|
switch (fState) {
|
||||||
case kExtractResolutionParameter:
|
case kExtractResolutionParameter:
|
||||||
@@ -167,8 +168,12 @@ GPCapabilityExtractor::ResolutionParameter(const char* name, const char* key,
|
|||||||
break;
|
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,
|
capability = new ResolutionCap(displayName, isDefault, fIndex,
|
||||||
x, y);
|
resolution, resolution);
|
||||||
AddCapability(fCapabilities->fResolutions, capability, key);
|
AddCapability(fCapabilities->fResolutions, capability, key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user