summaryrefslogtreecommitdiff
path: root/src/gpu_regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu_regs.c')
-rw-r--r--src/gpu_regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu_regs.c b/src/gpu_regs.c
index b5abec9fa..e2eb77240 100644
--- a/src/gpu_regs.c
+++ b/src/gpu_regs.c
@@ -63,7 +63,7 @@ void SetGpuReg(u8 regOffset, u16 value)
u16 vcount;
GPU_REG_BUF(regOffset) = value;
- vcount = REG_VCOUNT;
+ vcount = REG_VCOUNT & 0xFF;
if ((vcount >= 161 && vcount <= 225)
|| (REG_DISPCNT & DISPCNT_FORCED_BLANK)) {