changeset 31637:43958dd88aa1

Call spudec_draw for the unscaled case instead of duplicating code.
author reimar
date Sun, 11 Jul 2010 12:56:52 +0000
parents fc0080157cee
children e4cab1a16c0d
files spudec.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/spudec.c	Sun Jul 11 12:48:54 2010 +0000
+++ b/spudec.c	Sun Jul 11 12:56:52 2010 +0000
@@ -834,12 +834,7 @@
 
     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 */