Slight tweak to pixel resize function for low resolution output.

This commit is contained in:
Christopher Mason 2015-02-01 20:38:39 +00:00
parent 05e6b4c389
commit 753d907315

View File

@ -1508,7 +1508,7 @@ void Imagewriter::printBitGraph(Bit8u ch)
Bitu pixsizeY=1;
if(bitGraph.adjacent) {
pixsizeX = dpi/bitGraph.horizDens > 0? dpi/bitGraph.horizDens : 1;
if(dpi%bitGraph.horizDens)
if(dpi%bitGraph.horizDens && bitGraph.horizDens < dpi)
{
if(PIXX%(bitGraph.horizDens*8) || (PIXX == 0)) //Primative scaling function
{