Browse Source

* Removed calls to now deprecated cucul_set_dither_invert().

tags/v0.99.beta14
Sam Hocevar sam 17 years ago
parent
commit
1bcf95b212
3 changed files with 1 additions and 7 deletions
  1. +0
    -5
      cxx/cucul++.cpp
  2. +0
    -1
      cxx/cucul++.h
  3. +1
    -1
      test/demo.c

+ 0
- 5
cxx/cucul++.cpp View File

@@ -323,11 +323,6 @@ void Dither::setContrast(float f)
cucul_set_dither_contrast(dither, f);
}

void Dither::setInvert(int i)
{
cucul_set_dither_invert(dither, i);
}

void Dither::setAntialias(char const *cv)
{
cucul_set_dither_antialias(dither, cv);


+ 0
- 1
cxx/cucul++.h View File

@@ -65,7 +65,6 @@ class Dither
void setBrightness(float);
void setGamma(float);
void setContrast(float);
void setInvert(int);
void setAntialias(char const *);
char const *const * getAntialiasList();
void setColor(char const *);


+ 1
- 1
test/demo.c View File

@@ -555,7 +555,7 @@ static void demo_render(void)
draw_circle(buffer, xo, yo, z, 0x000000ff, 200);

dither = cucul_create_dither(32, 256, 256, 4 * 256, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
cucul_set_dither_invert(dither, 1);
cucul_set_dither_gamma(dither, -1.0);
cucul_dither_bitmap(cv, 0, 0, cucul_get_canvas_width(cv), cucul_get_canvas_height(cv), dither, (char *)buffer);
cucul_free_dither(dither);
}


Loading…
Cancel
Save