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