From 585f9a64091aa5260c615638d858a46e5b2953dd Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 8 Apr 2006 19:34:57 +0000 Subject: [PATCH] disable PRS on linux (needs layout revamping) Originally committed to SVN as r312. --- core/posix/defines.h | 1 + core/subtitle_format.cpp | 2 ++ core/subtitle_format_prs.cpp | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/core/posix/defines.h b/core/posix/defines.h index a5d772b47..1831ce6f1 100644 --- a/core/posix/defines.h +++ b/core/posix/defines.h @@ -21,6 +21,7 @@ typedef uint64_t __uint64; #define NO_SPELLCHECKER #define NO_FEX +#define NO_PRS #if defined(HAVE_LIBAVCODEC) && defined(HAVE_LIBAVFORMAT) #define USE_LAVC diff --git a/core/subtitle_format.cpp b/core/subtitle_format.cpp index 661e27263..52e6e64b1 100644 --- a/core/subtitle_format.cpp +++ b/core/subtitle_format.cpp @@ -130,7 +130,9 @@ void SubtitleFormat::LoadFormats () { new ASSSubtitleFormat(); new SRTSubtitleFormat(); new TXTSubtitleFormat(); +#ifndef NO_PRS new PRSSubtitleFormat(); +#endif } loaded = true; } diff --git a/core/subtitle_format_prs.cpp b/core/subtitle_format_prs.cpp index 2fde68788..c7809950c 100644 --- a/core/subtitle_format_prs.cpp +++ b/core/subtitle_format_prs.cpp @@ -34,6 +34,8 @@ // +#ifndef NO_PRS + /////////// // Headers #include @@ -775,3 +777,5 @@ wxImage PRSSubtitleFormat::SubImageWithAlpha (wxImage &source,const wxRect &rect return image; } + +#endif /* NO_PRS */