1
0
mirror of synced 2026-01-13 15:27:55 +00:00

only call resize_bitmap if necessary

This commit is contained in:
Eric Smith 2002-08-25 13:22:42 +00:00
parent bd0cd6b8ce
commit 14ae7dfb61
2 changed files with 12 additions and 10 deletions

11
t2p.c
View File

@ -4,7 +4,7 @@
* will be compressed using ITU-T T.6 (G4) fax encoding.
*
* Main program
* $Id: t2p.c,v 1.16 2002/01/30 00:55:34 eric Exp $
* $Id: t2p.c,v 1.17 2002/08/25 05:22:42 eric Exp $
* Copyright 2001 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@ -377,10 +377,11 @@ boolean process_page (int image, /* range 1 .. n */
goto fail;
}
bitmap = resize_bitmap (bitmap,
x_resolution,
y_resolution,
input_attributes);
if (input_attributes.has_page_size)
bitmap = resize_bitmap (bitmap,
x_resolution,
y_resolution,
input_attributes);
rotate_bitmap (bitmap,
input_attributes);

View File

@ -4,7 +4,7 @@
* will be compressed using ITU-T T.6 (G4) fax encoding.
*
* Main program
* $Id: tumble.c,v 1.16 2002/01/30 00:55:34 eric Exp $
* $Id: tumble.c,v 1.17 2002/08/25 05:22:42 eric Exp $
* Copyright 2001 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@ -377,10 +377,11 @@ boolean process_page (int image, /* range 1 .. n */
goto fail;
}
bitmap = resize_bitmap (bitmap,
x_resolution,
y_resolution,
input_attributes);
if (input_attributes.has_page_size)
bitmap = resize_bitmap (bitmap,
x_resolution,
y_resolution,
input_attributes);
rotate_bitmap (bitmap,
input_attributes);