X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2FEDriverTypes.cpp;h=8b3f67851f77ff8cadf2eb439bcb6d680ab0ea6d;hb=a8ec20de5146479a15d388393b37bbf3e346f619;hp=356af975b1c89315733ad7122d3b8fa29c8150ef;hpb=8994b42fea213a741631efbe7fd9c09c0aab7100;p=guile-irrlicht.git diff --git a/src/EDriverTypes.cpp b/src/EDriverTypes.cpp index 356af97..8b3f678 100644 --- a/src/EDriverTypes.cpp +++ b/src/EDriverTypes.cpp @@ -29,34 +29,30 @@ extern "C" { scm_to_driver_type (SCM driver_type) { char* driverType = scm_to_utf8_stringn (scm_symbol_to_string (driver_type), NULL); - if (!strcmp(driverType, "null")) + if (!strcmp (driverType, "null")) { return irr::video::EDT_NULL; } - else if (!strcmp(driverType, "software")) + else if (!strcmp (driverType, "software")) { return irr::video::EDT_SOFTWARE; } - else if (!strcmp(driverType, "burnings")) + else if (!strcmp (driverType, "burnings")) { return irr::video::EDT_BURNINGSVIDEO; } - else if (!strcmp(driverType, "direct3d8")) + else if (!strcmp (driverType, "direct3d8")) { return irr::video::EDT_DIRECT3D8; } - else if (!strcmp(driverType, "direct3d9")) + else if (!strcmp (driverType, "direct3d9")) { return irr::video::EDT_DIRECT3D9; } - else if (!strcmp(driverType, "opengl")) + else if (!strcmp (driverType, "opengl")) { return irr::video::EDT_OPENGL; } - else if (!strcmp(driverType, "count")) - { - return irr::video::EDT_COUNT; - } else { return irr::video::EDT_NULL;