-
Notifications
You must be signed in to change notification settings - Fork 58
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
Some wxGraphicsContext methods accept Lua table as an array of wxPoint2DDoubles #53
Conversation
@toshinagata, looks good, thank you for the patch! I have couple of questions/suggestions:
|
…argument type is fixed (int -> size_t)
@pkulchenko, you're right. I have just pushed one more commit. Is that all right? |
Sorry, one more commit. I overlooked the overridden StrokeLines(). |
@toshinagata, the changes look good, but I get compilation errors on Windows (
Do you know what may be missing? |
It looks like we need #include <wx/geometry.h> somewhere. Does this patch work? |
Yes, the patched worked; thank you. |
DrawLines(), StrokeLines() (two variants) need an array of wxPoint2DDoubles, just like wxDC:DrawLines() needs an array of wxPoints. The arguments of these methods are modified so that they work similarly as in wxDC:DrawLines(). One of the variants of StrokeLines() needs an override, because it accepts only one 'n' (= the number of wxPoint2DDoubles) argument but two arrays of wxPoint2DDoubles.