瀏覽代碼

* Do not assume default gamma value is 1.0.

tags/v0.99.beta14
Sam Hocevar sam 17 年之前
父節點
當前提交
7db5247e43
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      test/gamma.c

+ 2
- 1
test/gamma.c 查看文件

@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
cucul_canvas_t *cv, *cw, *mask;
caca_display_t *dp;
cucul_dither_t *left, *right;
float gam = 1.0;
float gam;
int x;

cv = cucul_create_canvas(0, 0);
@@ -65,6 +65,7 @@ int main(int argc, char *argv[])
0x00ff0000, 0x0000ff00, 0x000000ff, 0x0);
right = cucul_create_dither(32, 256, 4, 4 * 256,
0x00ff0000, 0x0000ff00, 0x000000ff, 0x0);
gam = cucul_get_dither_gamma(right);
caca_set_display_time(dp, 20000);

for(x = 0; ; x++)


Loading…
取消
儲存