Permalink
Browse files

Minor edit to Stage screenshot naming to add proper leading zeros to …

…snapshot file names.
  • Loading branch information...
1 parent 2429601 commit 0356e8a0c0bd0833e8437d7b28542129d8e0a1b8 @mani-monaj 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 0356e8a

Please sign in to comment.