aboutsummaryrefslogtreecommitdiff
path: root/Source/Gfx.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-29 01:29:43 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-29 01:29:43 +0100
commit26bfe68b0964bf5cc94da480749cc580c9c99e78 (patch)
tree843d54d6c3bc1709297929c95b778d0dfab320d4 /Source/Gfx.c
parent41df9924d450f04ab2d80d5a755dcbdf8bdb8271 (diff)
downloadairport-26bfe68b0964bf5cc94da480749cc580c9c99e78.tar.gz
Blue background dimensions are now limited to drawing enviroment's.
Fixed X position for "Remaining aircraft" and "Next aircraft" messages in GameGui.c
Diffstat (limited to 'Source/Gfx.c')
-rw-r--r--Source/Gfx.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/Gfx.c b/Source/Gfx.c
index 67fd3ed..2332892 100644
--- a/Source/Gfx.c
+++ b/Source/Gfx.c
@@ -909,7 +909,7 @@ void GfxSetSplitScreen(uint8_t playerIndex)
break;
}
- GsSetDrawEnv_DMA(&DrawEnv);
+ GsSetDrawEnv(&DrawEnv);
}
void GfxDisableSplitScreen(void)
@@ -919,3 +919,13 @@ void GfxDisableSplitScreen(void)
GsSetDrawEnv_DMA(&DrawEnv);
}
+
+short GfxGetDrawEnvWidth(void)
+{
+ return DrawEnv.w;
+}
+
+short GfxGetDrawEnvHeight(void)
+{
+ return DrawEnv.h;
+}