瀏覽代碼

Don't redraw background for more than the dirty rectangle in x11 driver, we will not redraw foreground there

tags/v0.99.beta17
Pascal Terjan pterjan 15 年之前
父節點
當前提交
de5be87d0e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      caca/driver/x11.c

+ 1
- 1
caca/driver/x11.c 查看文件

@@ -311,7 +311,7 @@ static void x11_display(caca_display_t *dp)
uint16_t bg = caca_attr_to_rgb12_bg(*attrs);

len = 1;
while(x + len < width
while(x + len < dx + dw
&& caca_attr_to_rgb12_bg(attrs[len]) == bg)
len++;



Loading…
取消
儲存