X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Futil.h;h=16845243fc6629c101f6708a9b85d43e7b4e4555;hb=53c0ee3332822465be7dcf923ca3c6445076b555;hp=2e5f0133fdc09bf79c2389aff7d13df603e2bf38;hpb=f32400a0517cbcd4a37d38884fcb72d3d51fa75c;p=gbajam22 diff --git a/src/util.h b/src/util.h index 2e5f013..1684524 100644 --- a/src/util.h +++ b/src/util.h @@ -15,7 +15,7 @@ #define present(x) \ do { \ - REG_DISPCNT = DISPCNT_BG2 | DISPCNT_OBJ | 4 | ((x) << 4); \ + REG_DISPCNT = (REG_DISPCNT & ~DISPCNT_FB1) | ((x) << 4); \ } while(0) #define ARM_IWRAM __attribute__((noinline, target("arm"), section(".iwram")))