[MPlayer-cvslog] r31703 - trunk/spudec.c
reimar
subversion at mplayerhq.hu
Sun Jul 11 14:56:52 CEST 2010
Author: reimar
Date: Sun Jul 11 14:56:52 2010
New Revision: 31703
Log:
Call spudec_draw for the unscaled case instead of duplicating code.
Modified:
trunk/spudec.c
Modified: trunk/spudec.c
==============================================================================
--- trunk/spudec.c Sun Jul 11 14:48:54 2010 (r31702)
+++ trunk/spudec.c Sun Jul 11 14:56:52 2010 (r31703)
@@ -834,12 +834,7 @@ void spudec_draw_scaled(void *me, unsign
if (!(spu_aamode&16) && (spu->orig_frame_width == 0 || spu->orig_frame_height == 0
|| (spu->orig_frame_width == dxs && spu->orig_frame_height == dys))) {
- if (spu->image)
- {
- draw_alpha(spu->start_col, spu->start_row, spu->width, spu->height,
- spu->image, spu->aimage, spu->stride);
- spu->spu_changed = 0;
- }
+ spudec_draw(spu, draw_alpha);
}
else {
if (spu->scaled_frame_width != dxs || spu->scaled_frame_height != dys) { /* Resizing is needed */
More information about the MPlayer-cvslog
mailing list