Skip to content

Commit

Permalink
Minor edit to Stage screenshot naming to add proper leading zeros to …
Browse files Browse the repository at this point in the history
…snapshot file names.
  • Loading branch information
mani-monaj committed Dec 2, 2011
1 parent 2429601 commit 0356e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libstage/canvas.cc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ void Canvas::Screenshot()


static uint32_t count = 0; static uint32_t count = 0;
char filename[64]; char filename[64];
snprintf( filename, 63, "stage-%d.png", count++ ); snprintf( filename, 63, "stage-%06d.png", count++ );


FILE *fp = fopen( filename, "wb" ); FILE *fp = fopen( filename, "wb" );
if( fp == NULL ) if( fp == NULL )
Expand Down

0 comments on commit 0356e8a

Please sign in to comment.