浏览代码

* Fixed cucul_set_canvas_boundaries() bug that prevented good size to be applied on the resized canvas

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 16 年前
父节点
当前提交
4d9b88ff3e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      cucul/canvas.c

+ 3
- 3
cucul/canvas.c 查看文件

@@ -484,7 +484,6 @@ int cucul_set_canvas_boundaries(cucul_canvas_t *cv, int x, int y,
cucul_set_frame(cv, f);
cucul_set_frame(new, f);
cucul_blit(new, -x, -y, cv, NULL);

free(cv->frames[f].chars);
free(cv->frames[f].attrs);
}
@@ -493,8 +492,9 @@ int cucul_set_canvas_boundaries(cucul_canvas_t *cv, int x, int y,
cv->frames = new->frames;
free(new);

cucul_set_frame(cv, saved_f);

cucul_set_frame(cv, saved_f);
_cucul_load_frame_info(cv);
return 0;
}


正在加载...
取消
保存