]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - src/video-driver.cpp
Use SCM_UNDEFINED for undefined arguments
[guile-irrlicht.git] / src / video-driver.cpp
index 85a720ef59212059c40ac9bff3df99286ee0cc5f..bd01f6ea7fce5ebee3a45d4ade6b4f94eaa1bfdd 100644 (file)
@@ -66,7 +66,7 @@ extern "C" {
                             scm_from_uint32 (0),
                             scm_from_uint32 (0));
     SCM video_data = SCM_BOOL_F;
-    SCM source_rect = SCM_BOOL_F;
+    SCM source_rect = SCM_UNDEFINED;
 
     scm_c_bind_keyword_arguments ("begin-scene", rest, (scm_t_keyword_arguments_flags)0,
                                   scm_from_utf8_keyword ("back-buffer"), &back_buffer,
@@ -78,7 +78,7 @@ extern "C" {
 
     irr::video::IVideoDriver* driver = unwrap_video_driver (wrapped_video_driver);
     irr::core::rect<irr::s32>* sourceRectAddress = 0;
-    if (!scm_is_false (source_rect))
+    if (source_rect != SCM_UNDEFINED)
       {
         irr::core::rect<irr::s32> sourceRect = scm_to_rect_s32 (source_rect);
         sourceRectAddress = &sourceRect;