summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-09-03 02:20:49 -0700
committerYamaArashi <shadow962@live.com>2016-09-03 02:20:49 -0700
commit8866801ef90e52d541095688782efd9acb27ac2f (patch)
tree2e2f01ebe6a48fae95a0daa5fe1712d059ce5e4e /src
parenta11fe6f83b2983f11b778173b19eddea99b59702 (diff)
make it build
Diffstat (limited to 'src')
-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)) {