File tree 1 file changed +16
-12
lines changed
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -488,23 +488,27 @@ vips_foreign_load_nsgif_generate( VipsRegion *or,
488
488
}
489
489
490
490
int
491
- vips_foreign_load_nsgif_tile_height (VipsForeignLoadNsgif * gif ) {
492
- int i ;
491
+ vips_foreign_load_nsgif_tile_height ( VipsForeignLoadNsgif * gif )
492
+ {
493
493
int height = gif -> info -> height ;
494
494
495
- // First, check the perfect size
496
- if (height % 16 == 0 )
497
- return 16 ;
495
+ int i ;
498
496
499
- // Next, check larger and smaller sizes
500
- for (i = 1 ; i < 16 ; i ++ ) {
501
- if (height % (16 + i ) == 0 )
502
- return (16 + i );
503
- if (height % (16 - i ) == 0 )
504
- return (16 - i );
497
+ /* First, check the perfect size.
498
+ */
499
+ if ( height % 16 == 0 )
500
+ return ( 16 );
501
+
502
+ /* Next, check larger and smaller sizes.
503
+ */
504
+ for ( i = 1 ; i < 16 ; i ++ ) {
505
+ if ( height % (16 + i ) == 0 )
506
+ return ( 16 + i );
507
+ if ( height % (16 - i ) == 0 )
508
+ return ( 16 - i );
505
509
}
506
510
507
- return 1 ;
511
+ return ( 1 ) ;
508
512
}
509
513
510
514
static int
You can’t perform that action at this time.
0 commit comments