From e68e4aa04e310748e9bb64f78dca1cd81a8b9bb3 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 29 Apr 2008 17:47:42 +0200 Subject: [PATCH 1/1] fix sprite offset when not flipped (now it's broken when the screen is flipped) --- galaxian/src/mc_video.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxian/src/mc_video.v b/galaxian/src/mc_video.v index c93b557..aafdcd3 100644 --- a/galaxian/src/mc_video.v +++ b/galaxian/src/mc_video.v @@ -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}}; assign O_8HF = W_HF_CNT[3]; -assign O_1VF = W_VF_CNT[0]; +assign O_1VF = I_V_CNT[0]^1'b1; //XXX: breaks when flipped reg [7:0]W_OBJ_D; wire [3:0]W_6J_DA = {I_H_FLIP , W_HF_CNT[7],W_HF_CNT[3],I_H_CNT[2]}; -- 2.39.2