瀏覽代碼

* Fixed matrix.c for non-Thinkpad computers.

tags/v0.99.beta14
Sam Hocevar sam 18 年之前
父節點
當前提交
004a78bc77
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. +5
    -6
      test/matrix.c

+ 5
- 6
test/matrix.c 查看文件

@@ -69,14 +69,13 @@ int main(void)
{
FILE *f = fopen("/sys/devices/platform/hdaps/position", "r");

if(!f)
if(f)
{
have_hdaps = 0;
break;
fscanf(f, "(%d,%d)", &sensorx, &sensory);
fclose(f);
}

fscanf(f, "(%d,%d)", &sensorx, &sensory);
fclose(f);
else
have_hdaps = 0;
}

w = cucul_get_canvas_width(cv);


Loading…
取消
儲存