Uh oh!
There was an error while loading. Please reload this page.
Fix Surface.draw_texture (#1705) - #1769
Conversation
eruvanos
commented
May 11, 2023
@pushfoo to 1. Please remove the exception, it is implemented and we should support it. TL;DR I see the confusion :D The big drawback is, that in the normal flow, a widgets sets the viewport and scissor box to its rect. So in general speak, the Exception is wrong, NinePatch does support a position, but we had the exception, because we wanted to prevent devs to use it in the wrong way. So I change my opinion: |
Uh oh!
There was an error while loading. Please reload this page.
eruvanos
commented
May 11, 2023
Regarding 2. |
Closes#1705
Changes
arcade.gui.Surface.draw_texturenow raisesNotImplementedErrorwhen alpha != 255 or angle != 0.How to test
Run test suite as normal
Retained for context
I have the logic corrected, but there are two questions I need answered:Is support for position implemented? One comment says it is, while another gives me the impression it isn't.Updated per commentsIs using theImplemented. I'd prefer to decouple this better, but it won't get us closer to 3.0.windowfixture acceptable intests/unit? If not, should I build out a newmock_windowfixture to fully or partially mock the gl context + window?