Add missing r_cons_canvas_goto_write ##cons

This commit is contained in:
condret 2024-02-16 14:57:52 +00:00 committed by GitHub
parent b23c6d05c2
commit db798cf402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -351,6 +351,11 @@ R_API void r_cons_canvas_write(RConsCanvas *c, const char *_s) {
free (os);
}
R_API void r_cons_canvas_write_at(RConsCanvas *c, const char *s, int x, int y) {
r_cons_canvas_gotoxy (c, x, y);
r_cons_canvas_write (c, s);
}
R_API void r_cons_canvas_background(RConsCanvas *c, const char *color) {
if (color) {
free (c->bgcolor);

View File

@ -804,7 +804,7 @@ R_API void r_cons_canvas_attr(RConsCanvas *c,const char *attr);
R_API void r_cons_canvas_write(RConsCanvas *c, const char *_s);
R_API void r_cons_canvas_background(RConsCanvas *c, const char *color);
R_API bool r_cons_canvas_gotoxy(RConsCanvas *c, int x, int y);
R_API void r_cons_canvas_goto_write(RConsCanvas *c,int x,int y, const char *s);
R_API void r_cons_canvas_write_at(RConsCanvas *c, const char *s, int x, int y);
R_API void r_cons_canvas_box(RConsCanvas *c, int x, int y, int w, int h, const char *color);
R_API void r_cons_canvas_circle(RConsCanvas *c, int x, int y, int w, int h, const char *color);
R_API void r_cons_canvas_line(RConsCanvas *c, int x, int y, int x2, int y2, RCanvasLineStyle *style);