X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fvideo-driver.cpp;h=bd01f6ea7fce5ebee3a45d4ade6b4f94eaa1bfdd;hb=a079c41de6a7504e579b425820beef21579e530e;hp=85a720ef59212059c40ac9bff3df99286ee0cc5f;hpb=5ae44925acf0d6905a62e28a09af184d9db655a1;p=guile-irrlicht.git diff --git a/src/video-driver.cpp b/src/video-driver.cpp index 85a720e..bd01f6e 100644 --- a/src/video-driver.cpp +++ b/src/video-driver.cpp @@ -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* sourceRectAddress = 0; - if (!scm_is_false (source_rect)) + if (source_rect != SCM_UNDEFINED) { irr::core::rect sourceRect = scm_to_rect_s32 (source_rect); sourceRectAddress = &sourceRect;