#99 align is declared as an integer

v2.5x
closed-wont-fix
Internals (76)
5
2003-12-02
2003-11-29
No

When browsing the source, I saw that align (in Crop) is
declared as integer. Should be a boolean I guess.

Discussion

  • Klaus Post

    Klaus Post - 2003-12-02
    • labels: --> Internals
    • milestone: --> v2.5x
    • assigned_to: nobody --> sh0dan
    • status: open --> closed-wont-fix
     
  • Klaus Post

    Klaus Post - 2003-12-02

    Logged In: YES
    user_id=578300

    It is only represented so internally. It is exposed as a
    bool in the script function, and translated in:

    (It is put in args[5])

    AVSValue __cdecl Crop::Create(AVSValue args, void*,
    IScriptEnvironment* env)
    {
    return new Crop( args[1].AsInt(), args[2].AsInt(),
    args[3].AsInt(), args[4].AsInt(), args[5].AsBool(false) ? 1
    : 0,
    args[0].AsClip(), env );
    }

     

Log in to post a comment.