-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Add Image::fill_rect
method
#52456
Add Image::fill_rect
method
#52456
Conversation
7f6d7d3
to
905567a
Compare
905567a
to
9377345
Compare
I've added a second commit changing these methods to use |
9377345
to
96cc72b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me, just one knit pick.
96cc72b
to
4292de2
Compare
4292de2
to
5273116
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested using the 3.x version (my computer doesn't support vulkan), everything seemed to work fine, no obvious regressions. Looks good to me 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, just remembered one more small thing (sorry), it might be a good idea to add some tests for fill_rect(...)
in tests/test_image.h
. There's already a test for fill(...)
5273116
to
9967ab6
Compare
Done. |
9967ab6
to
245b3b4
Compare
Needs a rebase. |
Co-authored-by: Lightning_A <aaronjrecord@gmail.com>
245b3b4
to
92ca300
Compare
Thanks! |
Resolves godotengine/godot-proposals#3259.
Made the
p_rect
parameterRect2
instead ofRect2i
to make it consistent with otherImage
's methods likeblit_rect()
,blend_rect()
etc. (if changingRect2
toRect2i
is wanted it can be made in a separate PR).