Skip to content

Commit b661f4b

Browse files
committed
revise formatting
1 parent ab2e0bf commit b661f4b

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

libvips/foreign/nsgifload.c

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -488,23 +488,27 @@ vips_foreign_load_nsgif_generate( VipsRegion *or,
488488
}
489489

490490
int
491-
vips_foreign_load_nsgif_tile_height(VipsForeignLoadNsgif *gif) {
492-
int i;
491+
vips_foreign_load_nsgif_tile_height( VipsForeignLoadNsgif *gif )
492+
{
493493
int height = gif->info->height;
494494

495-
// First, check the perfect size
496-
if (height % 16 == 0)
497-
return 16;
495+
int i;
498496

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 );
505509
}
506510

507-
return 1;
511+
return( 1 );
508512
}
509513

510514
static int

0 commit comments

Comments
 (0)