-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters