From 88135c52f8367549d6c864df193018f5a6cb2b35 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sat, 19 Jan 2013 20:28:17 -0500 Subject: Remove unneeded volatility, enabling more optimisations. Sound volatility is #define'd away, GUI volatility is simply removed. --- source/nds/draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/nds/draw.c') diff --git a/source/nds/draw.c b/source/nds/draw.c index b6916a3..4eb45c2 100644 --- a/source/nds/draw.c +++ b/source/nds/draw.c @@ -142,7 +142,7 @@ void drawhline(void* screen_addr, u32 sx, u32 ex, u32 y, u32 color) { u32 x; u32 width = (ex - sx) + 1; - volatile u16 *dst = VRAM_POS(screen_addr, sx, y); + u16 *dst = VRAM_POS(screen_addr, sx, y); for (x = 0; x < width; x++) *dst++ = (u16)color; @@ -155,7 +155,7 @@ void drawvline(void* screen_addr, u32 x, u32 sy, u32 ey, u32 color) { int y; int height = (ey - sy) + 1; - volatile u16 *dst = VRAM_POS(screen_addr, x, sy); + u16 *dst = VRAM_POS(screen_addr, x, sy); for (y = 0; y < height; y++) { @@ -183,7 +183,7 @@ void drawboxfill(void* screen_addr, u32 sx, u32 sy, u32 ex, u32 ey, u32 color) u32 x, y; u32 width = (ex - sx) + 1; u32 height = (ey - sy) + 1; - volatile u16 *dst = VRAM_POS(screen_addr, sx, sy); + u16 *dst = VRAM_POS(screen_addr, sx, sy); for (y = 0; y < height; y++) { -- cgit v1.2.3