X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Fmaterial.cpp;h=7c2eb0e6569370363d79dcd473d98b43e167fe5a;hp=72467acc7f39572b50a8c3f53ccc0404b1fd8578;hb=4f049544ec827a9f1f16a913d7241f29179fdde7;hpb=c4d9e46f268b4f7f738dd77685c632991125cec9 diff --git a/src/material.cpp b/src/material.cpp index 72467ac..7c2eb0e 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -128,7 +128,7 @@ init_material (void) video::E_ANTI_ALIASING_MODE scm_to_anti_aliasing_mode (SCM anti_aliasing_mode) { - char* mode = scm_to_utf8_stringn (scm_symbol_to_string (anti_aliasing_mode), NULL); + char* mode = scm_to_utf8_string (scm_symbol_to_string (anti_aliasing_mode)); if (!strcmp (mode, "off")) { return video::EAAM_OFF; @@ -167,7 +167,7 @@ scm_to_anti_aliasing_mode (SCM anti_aliasing_mode) video::E_BLEND_OPERATION scm_to_blend_operation (SCM blend_operation) { - char* operation = scm_to_utf8_stringn (scm_symbol_to_string (blend_operation), NULL); + char* operation = scm_to_utf8_string (scm_symbol_to_string (blend_operation)); if (!strcmp (operation, "none")) { return video::EBO_NONE; @@ -218,7 +218,7 @@ scm_to_blend_operation (SCM blend_operation) video::E_COLOR_MATERIAL scm_to_color_material (SCM color_material) { - char* material = scm_to_utf8_stringn (scm_symbol_to_string (color_material), NULL); + char* material = scm_to_utf8_string (scm_symbol_to_string (color_material)); if (!strcmp (material, "none")) { return video::ECM_NONE; @@ -253,7 +253,7 @@ scm_to_color_material (SCM color_material) video::E_COLOR_PLANE scm_to_color_plane (SCM color_plane) { - char* plane = scm_to_utf8_stringn (scm_symbol_to_string (color_plane), NULL); + char* plane = scm_to_utf8_string (scm_symbol_to_string (color_plane)); if (!strcmp (plane, "none")) { return video::ECP_NONE; @@ -292,7 +292,7 @@ scm_to_color_plane (SCM color_plane) video::E_COMPARISON_FUNC scm_to_comparison_func (SCM comparison_func) { - char* func = scm_to_utf8_stringn (scm_symbol_to_string (comparison_func), NULL); + char* func = scm_to_utf8_string (scm_symbol_to_string (comparison_func)); if (!strcmp (func, "never")) { return video::ECFN_NEVER; @@ -335,7 +335,7 @@ scm_to_comparison_func (SCM comparison_func) video::E_POLYGON_OFFSET scm_to_polygon_offset (SCM polygon_offset) { - char* offset = scm_to_utf8_stringn (scm_symbol_to_string (polygon_offset), NULL); + char* offset = scm_to_utf8_string (scm_symbol_to_string (polygon_offset)); if (!strcmp (offset, "back")) { return video::EPO_BACK;