aboutsummaryrefslogtreecommitdiff
path: root/source/nds/draw.c
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-19 20:28:17 -0500
committerNebuleon Fumika2013-01-19 20:28:17 -0500
commit88135c52f8367549d6c864df193018f5a6cb2b35 (patch)
tree57ae06a89349f86544f00060adbf2cdc396a8374 /source/nds/draw.c
parent2bb2ee8c0aee044998858ff8263be71cb908a663 (diff)
downloadsnes9x2005-88135c52f8367549d6c864df193018f5a6cb2b35.tar.gz
snes9x2005-88135c52f8367549d6c864df193018f5a6cb2b35.tar.bz2
snes9x2005-88135c52f8367549d6c864df193018f5a6cb2b35.zip
Remove unneeded volatility, enabling more optimisations. Sound volatility is #define'd away, GUI volatility is simply removed.
Diffstat (limited to 'source/nds/draw.c')
-rw-r--r--source/nds/draw.c6
1 files changed, 3 insertions, 3 deletions
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++)
{