summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-05-21 18:00:25 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-05-21 18:00:25 +0200
commit88b1e9e505dad78fd2c3ff927495d322b11491ca (patch)
treebc1a13c3204a6fea70a56344f949c56d2efbd854 /config.h
parent2626d880a58b99ff70e43f36575517c3fbb2c7b9 (diff)
Added support for multiple resolutions.
Diffstat (limited to 'config.h')
-rw-r--r--config.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.h b/config.h
index cb69153..6884b1a 100644
--- a/config.h
+++ b/config.h
@@ -2,20 +2,20 @@
#define CONFIG_H
namespace Config {
- const unsigned int window_w = 1920;
- const unsigned int window_h = 1080;
+ const unsigned int window_w = 1280;
+ const unsigned int window_h = 800;
- const unsigned int viewport_x = 300;
- const unsigned int viewport_y = 15;
- const unsigned int viewport_w = 900;
- const unsigned int viewport_h = 1050;
+ const float viewport_x = 15.0 / 1080.0;
+ const float viewport_y = 15.0 / 1080.0;
+ const float viewport_w = 900.0 / 1080.0;
+ const float viewport_h = 1050.0 / 1080.0;
const unsigned int viewport_overscan = 10;
const float viewport_aspect = float(viewport_h) / float(viewport_w);
- const unsigned int fps_x = 1;
- const unsigned int fps_y = 1;
+ const float fps_x = 0.0;
+ const float fps_y = 0.0;
};
#endif