Value* enlargeUpdateRect_cf(Value** arg_list, int count) { check_arg_count(enlargeUpdateRect, 1, count); GraphicsWindow *gw = MAXScript_interface->GetActiveViewExp().getGW(); if (MaxSDK::Graphics::IsRetainedModeEnabled() && gw->querySupport(GW_SPT_NUM_LIGHTS) == 0) { return &undefined; } Value* val = arg_list[0]; gw->enlargeUpdateRect(( val == n_whole) ? NULL : &(val->to_box2())); return &ok; }