Permalink
Browse files

Merge pull request #16 from mani-monaj/master

Add leading zeros to Stage generated screenshot file names.
  • Loading branch information...
2 parents a942d14 + 0356e8a commit bc131bf8ae0de1bc24a1f1e7d6fb47a629a30781 @rtv committed Dec 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 libstage/canvas.cc
View
@@ -1100,7 +1100,7 @@ void Canvas::Screenshot()
static uint32_t count = 0;
char filename[64];
- snprintf( filename, 63, "stage-%d.png", count++ );
+ snprintf( filename, 63, "stage-%06d.png", count++ );
FILE *fp = fopen( filename, "wb" );
if( fp == NULL )

0 comments on commit bc131bf

Please sign in to comment.