cgm_minverse(proj_matrix_inv);
rtk_resize(toolbar, win_width, TOOLBAR_HEIGHT);
+
+ inval_vport();
}
static void mdl_keyb(int key, int press)
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:
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;
+ app_redisplay(totalrend.x, totalrend.y, totalrend.width, totalrend.height);
+ inval_vport();
}
prev_tool = cur_tool;