-
Notifications
You must be signed in to change notification settings - Fork 46
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
Painter updates: scaling (HAVE_SCALING=1) and clip rect on clear #215
base: master
Are you sure you want to change the base?
Conversation
This is great! Thanks for the addition... Would you mind adding a test or an example for this somewhere? Also, I thought some of this was handled by |
@RobLoach, I've now added a unit test for scaling (
From the looks of the code, HAVE_COMPOSITION only affects how transparency is resolved. From the README:
By the way, one thing I'm not sure about is how to check from the lua test side of things if lutro was compile with HAVE_TRANSFORM (or HAVE_COMPOSITION). Ideally the scaling test should be skipped if HAVE_COMPOSITION is disabled (or the makefile should ensure that tests are built with both fields enabled somehow). |
Hmmm, we could possibly expose something like |
This pull request introduces 1 alert when merging e4f931d into 81e078f - view on LGTM.com new alerts:
|
Okay, I've added this. See diff in |
@nstbayless Apologies for being away. Is this good to merge???? Looks pretty awesome. |
Is this going to be merged? |
Summary
pntr_clear
is now affected by the clip rect, as per the love 2d api documentation.make HAVE_SCALING=1
to enable scaling inpntr_draw
. (This allows images to be scaled when drawn)