Skip to content

Commit

Permalink
Fix params::InterfaceGl() for special characters in title
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Jan 14, 2011
1 parent 392583f commit f1fdfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cinder/params/Params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ InterfaceGl::InterfaceGl( const std::string &title, const Vec2i &size, const Col
initAntGl();
mBar = std::shared_ptr<TwBar>( TwNewBar( title.c_str() ), TwDeleteBar );
char optionsStr[1024];
sprintf( optionsStr, "%s size='%d %d' color='%d %d %d' alpha=%d", title.c_str(), size.x, size.y, (int)(color.r * 255), (int)(color.g * 255), (int)(color.b * 255), (int)(color.a * 255) );
sprintf( optionsStr, "`%s` size='%d %d' color='%d %d %d' alpha=%d", title.c_str(), size.x, size.y, (int)(color.r * 255), (int)(color.g * 255), (int)(color.b * 255), (int)(color.a * 255) );
TwDefine( optionsStr );
}

Expand Down

0 comments on commit f1fdfa0

Please sign in to comment.