1 --- vlc-3.0.16/modules/video_output/caca.c.orig 2017-11-24 16:29:18.000000000 +0100
2 +++ vlc-3.0.16/modules/video_output/caca.c 2022-01-30 19:43:25.433547548 +0100
3 @@ -74,9 +74,9 @@ static void Place(vout_display_t *, vout
6 struct vout_display_sys_t {
10 - cucul_dither_t *dither;
11 + caca_dither_t *dither;
14 vout_display_event_thread_t *et;
15 @@ -153,9 +153,9 @@ static int Open(vlc_object_t *object)
19 - sys->cv = cucul_create_canvas(0, 0);
20 + sys->cv = caca_create_canvas(0, 0);
22 - msg_Err(vd, "cannot initialize libcucul");
23 + msg_Err(vd, "cannot initialize libcaca");
27 @@ -209,11 +209,11 @@ error:
29 picture_pool_Release(sys->pool);
31 - cucul_free_dither(sys->dither);
32 + caca_free_dither(sys->dither);
34 caca_free_display(sys->dp);
36 - cucul_free_canvas(sys->cv);
37 + caca_free_canvas(sys->cv);
41 @@ -235,9 +235,9 @@ static void Close(vlc_object_t *object)
43 picture_pool_Release(sys->pool);
45 - cucul_free_dither(sys->dither);
46 + caca_free_dither(sys->dither);
47 caca_free_display(sys->dp);
48 - cucul_free_canvas(sys->cv);
49 + caca_free_canvas(sys->cv);
53 @@ -266,7 +266,7 @@ static void Prepare(vout_display_t *vd,
56 /* Create the libcaca dither object */
57 - sys->dither = cucul_create_dither(32,
58 + sys->dither = caca_create_dither(32,
59 vd->source.i_visible_width,
60 vd->source.i_visible_height,
61 picture->p[0].i_pitch,
62 @@ -284,12 +284,12 @@ static void Prepare(vout_display_t *vd,
63 vout_display_place_t place;
66 - cucul_set_color_ansi(sys->cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_BLACK);
67 - cucul_clear_canvas(sys->cv);
68 + caca_set_color_ansi(sys->cv, CACA_DEFAULT, CACA_BLACK);
69 + caca_clear_canvas(sys->cv);
71 const int crop_offset = vd->source.i_y_offset * picture->p->i_pitch +
72 vd->source.i_x_offset * picture->p->i_pixel_pitch;
73 - cucul_dither_bitmap(sys->cv, place.x, place.y,
74 + caca_dither_bitmap(sys->cv, place.x, place.y,
75 place.width, place.height,
77 &picture->p->p_pixels[crop_offset]);
78 @@ -328,7 +328,7 @@ static int Control(vout_display_t *vd, i
80 case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
82 - cucul_free_dither(sys->dither);
83 + caca_free_dither(sys->dither);
87 @@ -366,8 +366,8 @@ static void Place(vout_display_t *vd, vo
89 vout_display_PlacePicture(place, &vd->source, vd->cfg, false);
91 - const int canvas_width = cucul_get_canvas_width(sys->cv);
92 - const int canvas_height = cucul_get_canvas_height(sys->cv);
93 + const int canvas_width = caca_get_canvas_width(sys->cv);
94 + const int canvas_height = caca_get_canvas_height(sys->cv);
95 const int display_width = caca_get_display_width(sys->dp);
96 const int display_height = caca_get_display_height(sys->dp);