*text = strdup( plainText );
// If the current input panel is password mode, dali should replace the plain text with '*' (Asterisk) character.
- if( ecore_imf_context_input_hint_get( mIMFContext ) & ECORE_IMF_INPUT_HINT_SENSITIVE_DATA )
+ if( ( ecore_imf_context_input_hint_get( mIMFContext ) & ECORE_IMF_INPUT_HINT_SENSITIVE_DATA ) && *text )
{
for( char* iter = *text; *iter; ++iter )
{
void GetNanoseconds( uint64_t& timeInNanoseconds )
{
timespec timeSpec;
- clock_gettime( CLOCK_MONOTONIC, &timeSpec );
-
- // Convert all values to uint64_t to match our return type
- timeInNanoseconds = ( static_cast< uint64_t >( timeSpec.tv_sec ) * NANOSECONDS_PER_SECOND ) + static_cast< uint64_t >( timeSpec.tv_nsec );
+ if( clock_gettime( CLOCK_MONOTONIC, &timeSpec ) == 0 )
+ {
+ // Convert all values to uint64_t to match our return type
+ timeInNanoseconds = ( static_cast< uint64_t >( timeSpec.tv_sec ) * NANOSECONDS_PER_SECOND ) + static_cast< uint64_t >( timeSpec.tv_nsec );
+ }
+ else
+ {
+ timeInNanoseconds = 0;
+ }
}
void SleepUntil( uint64_t timeInNanoseconds )
{
if( glyph->format != FT_GLYPH_FORMAT_BITMAP )
{
- int offsetX, offsetY;
+ int offsetX = 0, offsetY = 0;
bool isOutlineGlyph = ( glyph->format == FT_GLYPH_FORMAT_OUTLINE && outlineWidth > 0 );
// Create a bitmap for the outline