Cleaned up rubbish (#10292)
This commit is contained in:
parent
2e97ab4fab
commit
0f8fd93806
|
@ -461,7 +461,7 @@ R_API void r_cons_canvas_box(RConsCanvas *c, int x, int y, int w, int h, const c
|
|||
}
|
||||
}
|
||||
|
||||
R_API void r_cons_canvas_fill(RConsCanvas *c, int x, int y, int w, int h, char ch, int replace) {
|
||||
R_API void r_cons_canvas_fill(RConsCanvas *c, int x, int y, int w, int h, char ch) {
|
||||
int i;
|
||||
if (w < 0) {
|
||||
return;
|
||||
|
|
|
@ -100,7 +100,7 @@ struct agraph_refresh_data {
|
|||
|
||||
#define G(x, y) r_cons_canvas_gotoxy (g->can, x, y)
|
||||
#define W(x) r_cons_canvas_write (g->can, x)
|
||||
#define F(x, y, x2, y2, c) r_cons_canvas_fill (g->can, x, y, x2, y2, c, 0)
|
||||
#define F(x, y, x2, y2, c) r_cons_canvas_fill (g->can, x, y, x2, y2, c)
|
||||
|
||||
static bool is_offset(const RAGraph *g) {
|
||||
return g->mode == R_AGRAPH_MODE_OFFSET;
|
||||
|
@ -3111,7 +3111,7 @@ static int agraph_print(RAGraph *g, int is_interactive, RCore *core, RAnalFuncti
|
|||
r_config_set_i (core->config, "asm.cmt.right", 0);
|
||||
char *str = r_core_cmd_str (core, "pd $r");
|
||||
//r_cons_canvas_fill (g->can, -g->can->sx + title_len, -g->can->sy,
|
||||
// w - title_len, 1, ' ', true);
|
||||
// w - title_len, 1, ' ');
|
||||
W (str);
|
||||
free (str);
|
||||
r_config_set_i (core->config, "scr.utf8", scr_utf8);
|
||||
|
@ -3137,7 +3137,7 @@ static int agraph_print(RAGraph *g, int is_interactive, RCore *core, RAnalFuncti
|
|||
if (is_interactive && g->title) {
|
||||
int title_len = strlen (g->title);
|
||||
r_cons_canvas_fill (g->can, -g->can->sx + title_len, -g->can->sy,
|
||||
w - title_len, 1, ' ', true);
|
||||
w - title_len, 1, ' ');
|
||||
}
|
||||
|
||||
r_cons_canvas_print_region (g->can);
|
||||
|
|
|
@ -144,7 +144,7 @@ static void panelPrint(RCore *core, RConsCanvas *can, RPanel *panel, int color)
|
|||
delta_x = panel->sx;
|
||||
delta_y = panel->sy;
|
||||
// clear the canvas first
|
||||
r_cons_canvas_fill (can, panel->x, panel->y, panel->w, panel->h, ' ', 0);
|
||||
r_cons_canvas_fill (can, panel->x, panel->y, panel->w, panel->h, ' ');
|
||||
// for menu
|
||||
RCons *cons = r_cons_singleton ();
|
||||
if (panel->type == PANEL_TYPE_MENU) {
|
||||
|
@ -786,7 +786,7 @@ static bool init (RCore *core, RPanels *panels, int w, int h) {
|
|||
panels->callgraph = 0;
|
||||
panels->isResizing = false;
|
||||
panels->can = r_cons_canvas_new (w, h);
|
||||
r_cons_canvas_fill (panels->can, 0, 0, w, h, ' ', 0);
|
||||
r_cons_canvas_fill (panels->can, 0, 0, w, h, ' ');
|
||||
if (!panels->can) {
|
||||
eprintf ("Cannot create RCons.canvas context\n");
|
||||
return false;
|
||||
|
|
|
@ -619,7 +619,7 @@ R_API void r_cons_canvas_line(RConsCanvas *c, int x, int y, int x2, int y2, RCan
|
|||
R_API void r_cons_canvas_line_diagonal(RConsCanvas *c, int x, int y, int x2, int y2, RCanvasLineStyle *style);
|
||||
R_API void r_cons_canvas_line_square(RConsCanvas *c, int x, int y, int x2, int y2, RCanvasLineStyle *style);
|
||||
R_API int r_cons_canvas_resize(RConsCanvas *c, int w, int h);
|
||||
R_API void r_cons_canvas_fill(RConsCanvas *c, int x, int y, int w, int h, char ch, int replace);
|
||||
R_API void r_cons_canvas_fill(RConsCanvas *c, int x, int y, int w, int h, char ch);
|
||||
R_API void r_cons_canvas_line_square_defined (RConsCanvas *c, int x, int y, int x2, int y2, RCanvasLineStyle *style, int bendpoint, int isvert);
|
||||
R_API void r_cons_canvas_line_back_edge (RConsCanvas *c, int x, int y, int x2, int y2, RCanvasLineStyle *style, int ybendpoint1, int xbendpoint, int ybendpoint2, int isvert);
|
||||
|
||||
|
|
Loading…
Reference in New Issue