projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
render-area tool sticky, cancel/redraw with esc
[retroray]
/
src
/
scr_mod.c
diff --git
a/src/scr_mod.c
b/src/scr_mod.c
index
b1cbc1d
..
ef1c920
100644
(file)
--- a/
src/scr_mod.c
+++ b/
src/scr_mod.c
@@
-524,11
+524,12
@@
static void act_settool(int tidx)
int i;
rtk_rect r;
int i;
rtk_rect r;
- if(tidx == prev_tool) return;
+ if(tidx == cur_tool) return;
- if(prev_tool == TOOL_REND_AREA) {
- app_redisplay(totalrend.x, totalrend.y, totalrend.width, totalrend.height);
+ if(cur_tool == TOOL_REND_AREA) {
totalrend.width = 0;
totalrend.width = 0;
+ app_redisplay(totalrend.x, totalrend.y, totalrend.width, totalrend.height);
+ inval_vport();
}
prev_tool = cur_tool;
}
prev_tool = cur_tool;