]> git.zerfleddert.de Git - fpga-games/commitdiff
fix sprite offset when not flipped (now it's broken when the screen is flipped)
authorMichael Gernoth <michael@gernoth.net>
Tue, 29 Apr 2008 15:47:42 +0000 (17:47 +0200)
committerMichael Gernoth <michael@gernoth.net>
Tue, 29 Apr 2008 15:47:42 +0000 (17:47 +0200)
galaxian/src/mc_video.v

index c93b557cc3e1a6385d9078dc1fab460ae2c46f04..aafdcd3103b589173affb40fbb0f0f823cfa892c 100644 (file)
@@ -148,7 +148,7 @@ wire   [7:3]W_HF_CNT = I_H_CNT[7:3]^{5{W_H_FLIP1}};
 wire   [7:0]W_VF_CNT = I_V_CNT[7:0]^{8{I_V_FLIP}};\r
 \r
 assign O_8HF = W_HF_CNT[3];\r
-assign O_1VF = W_VF_CNT[0];\r
+assign O_1VF = I_V_CNT[0]^1'b1; //XXX: breaks when flipped\r
 \r
 reg    [7:0]W_OBJ_D;\r
 wire   [3:0]W_6J_DA = {I_H_FLIP  ,           W_HF_CNT[7],W_HF_CNT[3],I_H_CNT[2]};\r
Impressum, Datenschutz