diff TaskManager/Test/test_render/viewer.cpp @ 193:1ff24ca2f016 draft

fix
author gongo@localhost.localdomain
date Tue, 13 Jan 2009 19:06:13 +0900
parents 6694da357750
children b56fb6ac2fc4
line wrap: on
line diff
--- a/TaskManager/Test/test_render/viewer.cpp	Tue Jan 13 10:41:05 2009 +0900
+++ b/TaskManager/Test/test_render/viewer.cpp	Tue Jan 13 19:06:13 2009 +0900
@@ -326,17 +326,21 @@
 		// Draw SpanPack
 		task_draw = manager->create_task(TASK_DRAW_SPAN);
 		task_draw->add_inData(spack, sizeof(SpanPack));
+		
+		task_draw->add_param(
+		    (uint32)&pixels[(startx-1) + this->width*(starty-1)]);
+		task_draw->add_param(this->width);
 	    } else {
-		break;
+		//break;
 		// Draw Background (現在は塗りつぶし)
 		task_draw = manager->create_task(TASK_DRAW_BACK);
 		task_draw->add_param(0xffffffff);
-	    }
 	    
-	    for (int k = 0; k < rangey; k++) {
-		task_draw->add_outData(
-		    &pixels[(startx-1)+this->width*(k+starty-1)],
-		    (endx - startx + 1)*sizeof(int));
+		for (int k = 0; k < rangey; k++) {
+		    task_draw->add_outData(
+			&pixels[(startx-1)+this->width*(k+starty-1)],
+			(endx - startx + 1)*sizeof(int));
+		}
 	    }
 
 	    task_draw->add_param(startx);