5981b73830
- patch for old libcaca in F9-
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
--- src/video_out/video_out_caca.c Tue Nov 18 21:13:55 2008 +0100
|
|
+++ src/video_out/video_out_caca.c Mon Nov 10 16:33:51 2008 +0100
|
|
@@ -276,7 +276,6 @@ static int caca_redraw_needed (vo_driver
|
|
|
|
static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *visual_gen) {
|
|
caca_class_t *class = (caca_class_t *) class_gen;
|
|
- caca_display_t *dp = (caca_display_t *)visual_gen;
|
|
caca_driver_t *this;
|
|
|
|
this = calloc(1, sizeof (caca_driver_t));
|
|
@@ -301,13 +300,8 @@ static vo_driver_t *open_plugin (video_d
|
|
this->yuv2rgb_factory = yuv2rgb_factory_init(MODE_32_RGB, 0, NULL);
|
|
this->yuv2rgb_factory->set_csc_levels(this->yuv2rgb_factory, 0, 128, 128);
|
|
|
|
- if (dp) {
|
|
- this->cv = caca_get_canvas(dp);
|
|
- this->dp = dp;
|
|
- } else {
|
|
- this->cv = cucul_create_canvas(0, 0);
|
|
- this->dp = caca_create_display(this->cv);
|
|
- }
|
|
+ this->cv = cucul_create_canvas(0, 0);
|
|
+ this->dp = caca_create_display(this->cv);
|
|
|
|
caca_refresh_display(this->dp);
|
|
return &this->vo_driver;
|
|
|