only call resize_bitmap if necessary

Sun, 25 Aug 2002 13:22:42 +0000

author
eric
date
Sun, 25 Aug 2002 13:22:42 +0000
changeset 46
20fda1ec5f17
parent 45
23ef95d6ff07
child 47
bfc6aaa089b0

only call resize_bitmap if necessary

t2p.c file | annotate | diff | revisions
tumble.c file | annotate | diff | revisions
     1.1 --- a/t2p.c	Sun Aug 25 13:21:28 2002 +0000
     1.2 +++ b/t2p.c	Sun Aug 25 13:22:42 2002 +0000
     1.3 @@ -4,7 +4,7 @@
     1.4   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.5   *
     1.6   * Main program
     1.7 - * $Id: t2p.c,v 1.16 2002/01/30 00:55:34 eric Exp $
     1.8 + * $Id: t2p.c,v 1.17 2002/08/25 05:22:42 eric Exp $
     1.9   * Copyright 2001 Eric Smith <eric@brouhaha.com>
    1.10   *
    1.11   * This program is free software; you can redistribute it and/or modify
    1.12 @@ -377,10 +377,11 @@
    1.13  	goto fail;
    1.14        }
    1.15  
    1.16 -  bitmap = resize_bitmap (bitmap,
    1.17 -			      x_resolution,
    1.18 -			      y_resolution,
    1.19 -			      input_attributes);
    1.20 +  if (input_attributes.has_page_size)
    1.21 +    bitmap = resize_bitmap (bitmap,
    1.22 +			    x_resolution,
    1.23 +			    y_resolution,
    1.24 +			    input_attributes);
    1.25  
    1.26    rotate_bitmap (bitmap,
    1.27  		 input_attributes);
     2.1 --- a/tumble.c	Sun Aug 25 13:21:28 2002 +0000
     2.2 +++ b/tumble.c	Sun Aug 25 13:22:42 2002 +0000
     2.3 @@ -4,7 +4,7 @@
     2.4   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     2.5   *
     2.6   * Main program
     2.7 - * $Id: tumble.c,v 1.16 2002/01/30 00:55:34 eric Exp $
     2.8 + * $Id: tumble.c,v 1.17 2002/08/25 05:22:42 eric Exp $
     2.9   * Copyright 2001 Eric Smith <eric@brouhaha.com>
    2.10   *
    2.11   * This program is free software; you can redistribute it and/or modify
    2.12 @@ -377,10 +377,11 @@
    2.13  	goto fail;
    2.14        }
    2.15  
    2.16 -  bitmap = resize_bitmap (bitmap,
    2.17 -			      x_resolution,
    2.18 -			      y_resolution,
    2.19 -			      input_attributes);
    2.20 +  if (input_attributes.has_page_size)
    2.21 +    bitmap = resize_bitmap (bitmap,
    2.22 +			    x_resolution,
    2.23 +			    y_resolution,
    2.24 +			    input_attributes);
    2.25  
    2.26    rotate_bitmap (bitmap,
    2.27  		 input_attributes);