--with-caca, add awol patch

This commit is contained in:
Rex Dieter 2009-01-18 22:34:43 +00:00
parent 97c19f14e6
commit fe00119b9f
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,27 @@
--- 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;

View File

@ -121,7 +121,7 @@ It can play back various media. It also decodes multimedia files from local
disk drives, and displays multimedia streamed over the Internet. It
interprets many of the most common multimedia formats available - and some
of the most uncommon formats, too. --with/--without rpmbuild options
(some default values depend on target distribution): aalib, caca, directfb,
(some default values depend on target distribution): aalib, directfb,
imagemagick, freetype, antialiasing (with freetype), pulseaudio, xcb.
%package devel
@ -220,6 +220,7 @@ export SDL_CFLAGS="$(sdl-config --cflags)" SDL_LIBS="$(sdl-config --libs)"
%if 0%{?_with_freetype:1}
%if 0%{?_with_antialiasing:1}
--enable-antialiasing \
--with-caca \
%endif # antialiasing
--with-freetype \
--with-fontconfig \