mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-31 18:43:28 +00:00
Fix re/av-pag in VV graph view
This commit is contained in:
parent
c8130c4198
commit
e78b561669
@ -25,7 +25,8 @@ static const char *mousemodes[] = {
|
|||||||
#define MIN_NODE_HEIGTH BORDER_HEIGHT
|
#define MIN_NODE_HEIGTH BORDER_HEIGHT
|
||||||
#define TITLE_LEN 128
|
#define TITLE_LEN 128
|
||||||
#define DEFAULT_SPEED 1
|
#define DEFAULT_SPEED 1
|
||||||
#define PAGEKEY_SPEED 15
|
#define PAGEKEY_SPEED (h/2)
|
||||||
|
/* 15 */
|
||||||
#define SMALLNODE_TEXT_CUR "<@@@@@@>"
|
#define SMALLNODE_TEXT_CUR "<@@@@@@>"
|
||||||
#define SMALLNODE_MIN_WIDTH 8
|
#define SMALLNODE_MIN_WIDTH 8
|
||||||
#define SMALLNODE_TITLE_LEN 4
|
#define SMALLNODE_TITLE_LEN 4
|
||||||
@ -367,14 +368,14 @@ static int **get_crossing_matrix (const RGraph *g,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n_rows)
|
if (n_rows) {
|
||||||
*n_rows = len;
|
*n_rows = len;
|
||||||
|
}
|
||||||
return m;
|
return m;
|
||||||
|
|
||||||
err_row:
|
err_row:
|
||||||
for (i = 0; i < len; ++i) {
|
for (i = 0; i < len; i++) {
|
||||||
if (m[i])
|
free (m[i]);
|
||||||
free (m[i]);
|
|
||||||
}
|
}
|
||||||
free (m);
|
free (m);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -2615,6 +2616,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
|||||||
core->cons->event_resize = (RConsEvent)agraph_refresh;
|
core->cons->event_resize = (RConsEvent)agraph_refresh;
|
||||||
|
|
||||||
while (!exit_graph && !is_error) {
|
while (!exit_graph && !is_error) {
|
||||||
|
w = r_cons_get_size (&h);
|
||||||
invscroll = r_config_get_i (core->config, "graph.invscroll");
|
invscroll = r_config_get_i (core->config, "graph.invscroll");
|
||||||
ret = agraph_refresh (grd);
|
ret = agraph_refresh (grd);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
@ -2868,7 +2870,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'J':
|
case 'J':
|
||||||
if (okey == 27 && r_cons_readchar () == 126) {
|
if (okey == 27) { // && r_cons_readchar () == 126) {
|
||||||
// handle page down key
|
// handle page down key
|
||||||
can->sy -= PAGEKEY_SPEED * (invscroll ? -1 : 1);
|
can->sy -= PAGEKEY_SPEED * (invscroll ? -1 : 1);
|
||||||
} else {
|
} else {
|
||||||
@ -2876,7 +2878,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'K':
|
case 'K':
|
||||||
if (okey == 27 && r_cons_readchar () == 126) {
|
if (okey == 27) { // && r_cons_readchar () == 126) {
|
||||||
// handle page up key
|
// handle page up key
|
||||||
can->sy += PAGEKEY_SPEED * (invscroll ? -1 : 1);
|
can->sy += PAGEKEY_SPEED * (invscroll ? -1 : 1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user