summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-22 17:57:15 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-22 17:57:15 +0000
commit61f60602435d800050ea1a10712b8ad992b54ce0 (patch)
tree05a1da51145b6995b87b68f31247ea5886dafcc1 /spudec.c
parent3cb2033d4480951f95495db385f5591c6c3ca172 (diff)
downloadmpv-61f60602435d800050ea1a10712b8ad992b54ce0.tar.bz2
mpv-61f60602435d800050ea1a10712b8ad992b54ce0.tar.xz
Forgot to commit with vo_sdl osd patch.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4810 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/spudec.c b/spudec.c
index f2d2030e7c..4ebda66367 100644
--- a/spudec.c
+++ b/spudec.c
@@ -3,7 +3,7 @@
1: aproximate
2: full (slowest, best looking)
*/
-#define ANTIALIASING_ALGORITHM 1
+#define ANTIALIASING_ALGORITHM 2
/* SPUdec.c
Skeleton of function spudec_process_controll() is from xine sources.
@@ -389,7 +389,8 @@ void spudec_draw_scaled(void *me, unsigned int dxs, unsigned int dys, void (*dra
spu->image, spu->aimage, spu->stride);
}
else {
- if (!spu->scaled) { /* Resizing is needed */
+ if (!spu->scaled ||
+ spu->orig_frame_width != dxs || spu->orig_frame_height != dys) { /* Resizing is needed */
/* scaled_x = scalex * x / 0x100
scaled_y = scaley * y / 0x100
order of operations is important because of rounding. */