@@ -597,13 +597,13 @@ static const char *video_shader_wrap_mode_to_str(enum gfx_wrap_type type)
597597 **/
598598static enum gfx_wrap_type video_shader_wrap_str_to_mode (const char * wrap_mode )
599599{
600- if (memcmp (wrap_mode , "clamp_to_border" , sizeof ( "clamp_to_border" )) == 0 )
600+ if (! strcmp (wrap_mode , "clamp_to_border" ) )
601601 return RARCH_WRAP_BORDER ;
602- else if (memcmp (wrap_mode , "clamp_to_edge" , sizeof ( "clamp_to_edge" )) == 0 )
602+ else if (! strcmp (wrap_mode , "clamp_to_edge" ) )
603603 return RARCH_WRAP_EDGE ;
604- else if (memcmp (wrap_mode , "repeat" , sizeof ( "repeat" )) == 0 )
604+ else if (! strcmp (wrap_mode , "repeat" ) )
605605 return RARCH_WRAP_REPEAT ;
606- else if (memcmp (wrap_mode , "mirrored_repeat" , sizeof ( "mirrored_repeat" )) == 0 )
606+ else if (! strcmp (wrap_mode , "mirrored_repeat" ) )
607607 return RARCH_WRAP_MIRRORED_REPEAT ;
608608 RARCH_WARN ("[Shaders] Invalid wrapping type \"%s\". Valid ones are: \"clamp_to_border\" "
609609 "(default), \"clamp_to_edge\", \"repeat\" and \"mirrored_repeat\". Falling back to default.\n" ,
@@ -760,11 +760,11 @@ static bool video_shader_parse_pass(config_file_t *conf,
760760
761761 if (* scale_type_y )
762762 {
763- if (memcmp (scale_type_y , "source" , sizeof ( "source" )) == 0 )
763+ if (! strcmp (scale_type_y , "source" ) )
764764 scale -> type_y = RARCH_SCALE_INPUT ;
765- else if (memcmp (scale_type_y , "viewport" , sizeof ( "viewport" )) == 0 )
765+ else if (! strcmp (scale_type_y , "viewport" ) )
766766 scale -> type_y = RARCH_SCALE_VIEWPORT ;
767- else if (memcmp (scale_type_y , "absolute" , sizeof ( "absolute" )) == 0 )
767+ else if (! strcmp (scale_type_y , "absolute" ) )
768768 scale -> type_y = RARCH_SCALE_ABSOLUTE ;
769769 else
770770 {
0 commit comments