summaryrefslogtreecommitdiff
path: root/src/scene/contest_painting.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-17 17:47:46 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-17 17:47:46 -0500
commitf07cdb4c9723bdbb1fcdbbe622d39936ae5b532f (patch)
tree6b423f3b23c640582d6a7f44a802f8ba3dc6121e /src/scene/contest_painting.c
parent05d18468a4b817c0976b16017ef7b6044befed7f (diff)
use Dma Large loops for every while(1) Dma loop
Diffstat (limited to 'src/scene/contest_painting.c')
-rw-r--r--src/scene/contest_painting.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/scene/contest_painting.c b/src/scene/contest_painting.c
index 3aa898b03..0aa02312f 100644
--- a/src/scene/contest_painting.c
+++ b/src/scene/contest_painting.c
@@ -156,23 +156,8 @@ static void ShowContestPainting(void)
break;
case 1:
{
- u8 *addr;
- size_t size;
-
ResetPaletteFade();
- addr = (void *)VRAM;
- size = 0x18000;
- while (1)
- {
- DmaFill32(3, 0, addr, 0x1000);
- addr += 0x1000;
- size -= 0x1000;
- if (size <= 0x1000)
- {
- DmaFill32(3, 0, addr, size);
- break;
- }
- }
+ DmaFill32Large(3, 0, (void *)(VRAM + 0x0), 0x18000, 0x1000);
ResetSpriteData();
gMain.state++;
break;