about summary refs log tree commit diff
path: root/src/engine/client/gfx.c
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2007-12-10 23:28:37 +0000
committerJakob Fries <jakob.fries@gmail.com>2007-12-10 23:28:37 +0000
commitc896ce54ea7bede13b8574aa185cad0783d26e55 (patch)
tree31f027ba4f436f81b908c9fc872a754d8ba1bbab /src/engine/client/gfx.c
parentf5066fe62bd62f8a5bfb488fe6da8d5648e431bc (diff)
downloadzcatch-c896ce54ea7bede13b8574aa185cad0783d26e55.tar.gz
zcatch-c896ce54ea7bede13b8574aa185cad0783d26e55.zip
foundation for widescreen support... still needs to fix ingame gui
Diffstat (limited to 'src/engine/client/gfx.c')
-rw-r--r--src/engine/client/gfx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/client/gfx.c b/src/engine/client/gfx.c
index 945a615e..5d7ca4d8 100644
--- a/src/engine/client/gfx.c
+++ b/src/engine/client/gfx.c
@@ -281,6 +281,11 @@ int gfx_init()
 	return 1;
 }
 
+float gfx_screenaspect()
+{
+    return gfx_screenwidth()/(float)gfx_screenheight();
+}
+
 void gfx_clear_mask(int fill)
 {
 	/*if(fill)