Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow calling SDLx::Surface draw methods with blessed vectors #290

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 3, 2019

  1. Allow calling SDLx::Surface draw methods with blessed vectors

    Before this patch, validation of vectors used for coordinates
    in SDLx::Surface draw methods checked with
    
        ref $vector eq 'ARRAY'
    
    However, this meant that it was impossible to use these methods
    with eg. an array-based vector class.
    
    To support this, the check is now made with Scalar::Util::reftype,
    which more accurately represents what this test is checking.
    jjatria committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    cc5ac70 View commit details
    Browse the repository at this point in the history