- --
 
      Viewing Issue Advanced Details
    
  | ID | Category [?] | Severity [?] | Reproducibility | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 00552 | Graphics | Minor | Always | Jan 30, 2008, 20:38 | Apr 6, 2008, 00:50 | 
| Tester | Kale | View Status | Public | Platform | |
| Assigned To | robiza | Resolution | Fixed | OS | |
| Status [?] | Resolved | Driver | |||
| Version | 0.61 | Fixed in Version | 0.116u1 | Build | |
| Fixed in Git Commit | Github Pull Request # | ||||
| Summary | 00552: bldwolf: Down red arrows aren't drawn correctly. | ||||
| Description | 
          Down red arrows aren't drawn correctly. The top part is drawn on the bottom and the bottom part is drawn at the top.  Fix posted by robiza in 0.116.  | 
      ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Github Commit | |||||
| Flags | |||||
| Regression Version | |||||
| Affected Sets / Systems | bldwolf | ||||
| 
               Attached Files 
             | 
            |||||
diff -Nru old/video/battlera.c new/video/battlera.c
--- old/video/battlera.c	2007-06-10 21:32:20.000000000 +0200
+++ new/video/battlera.c	2007-06-13 20:55:09.000000000 +0200
@@ -242,7 +242,7 @@
 
 static void draw_sprites(mame_bitmap *bitmap,const rectangle *clip,int pri)
 {
-	int offs,my,mx,code,code2,fx,fy,cgy=0,cgx,colour,i;
+	int offs,my,mx,code,code2,fx,fy,cgy=0,cgx,colour,i,yinc;
 
 	/* Draw sprites, starting at SATB, draw in _reverse_ order */
 	for (offs=(HuC6270_registers[19]<<1)+0x200-8; offs>=(HuC6270_registers[19]<<1); offs-=8)
@@ -276,6 +276,9 @@
 		if (fx && cgx) {code2=code; code++;} /* Swap tile order on X flips */
 		else code2=code+1;
 
+		yinc = 16;
+		if (fy) { my += 16*(cgy-1); yinc = -16; } /* Swap tile order on Y flips */
+
 		for (i=0; i<cgy; i++) {
 			drawgfx(bitmap,Machine->gfx[1],
 				code,
@@ -291,11 +294,11 @@
 						fx,fy,
 						mx+16,my,
 						clip,TRANSPARENCY_PEN,0);
-			my+=16;
+			my += yinc;
 			/* if (cgx) */ /* Different from console? */
-			code+=2;
-			code2+=2;
-			/*else code+=1; */ /* Different from console? */
+			code += 2;
+			code2 += 2;
+			/*else code += 1; */ /* Different from console? */
 		}
 	}
 
 | |||||
      Relationships
		
    
  | There are no relationship linked to this issue. | 
      Notes
      
    
  0
    | There are no notes attached to this issue. |