projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
heed resolution options, and cross-version resizing
[retroray]
/
src
/
scr_mod.c
diff --git
a/src/scr_mod.c
b/src/scr_mod.c
index
b1cbc1d
..
834c1c0
100644
(file)
--- a/
src/scr_mod.c
+++ b/
src/scr_mod.c
@@
-330,6
+330,8
@@
static void mdl_reshape(int x, int y)
cgm_minverse(proj_matrix_inv);
rtk_resize(toolbar, win_width, TOOLBAR_HEIGHT);
cgm_minverse(proj_matrix_inv);
rtk_resize(toolbar, win_width, TOOLBAR_HEIGHT);
+
+ inval_vport();
}
static void mdl_keyb(int key, int press)
}
static void mdl_keyb(int key, int press)
@@
-491,6
+493,11
@@
static void tbn_callback(rtk_widget *w, void *cls)
int id = (intptr_t)cls;
switch(id) {
int id = (intptr_t)cls;
switch(id) {
+ case TBN_NEW:
+ scn_clear(scn);
+ inval_vport();
+ break;
+
case TBN_SEL:
case TBN_MOVE:
case TBN_ROT:
case TBN_SEL:
case TBN_MOVE:
case TBN_ROT:
@@
-524,11
+531,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;