aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-27 00:23:26 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-27 00:23:26 +0000
commit993527e08664cbf457d945921cd76bb2a92143fe (patch)
tree8f980ff4f637d72fd45fc6d62ad790062d822924
parentdd92211983d4d8a7b99b17015481260f404f5d00 (diff)
Add '1280W' (1280x768) resolution
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@179 84d2e878-0bd5-11dd-ad15-13eda11d74c5
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index b096342..c230308 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,6 +32,7 @@ typedef enum {
RES_800,
RES_1024,
RES_1280,
+ RES_1280W,
RES_1330,
RES_1440,
RES_1680
@@ -64,6 +65,7 @@ static void main_help(const char *n) {
printf(" 800 - 800 x 600 (this is the default)\n");
printf(" 1024 - 1024 x 768\n");
printf(" 1280 - 1280 x 1024\n");
+ printf(" 1280W - 1280 x 768 (widescreen)\n");
printf(" 1330 - 1330 x 900 (widescreen)\n");
printf(" 1440 - 1440 x 900 (widescreen)\n");
printf(" 1680 - 1680 x 1050 (widescreen)\n");
@@ -126,6 +128,7 @@ int main(int argc, char *argv[]) {
else if ( strcasecmp(optarg, "800") == 0 ) res = RES_800;
else if ( strcasecmp(optarg, "1024") == 0 ) res = RES_1024;
else if ( strcasecmp(optarg, "1280") == 0 ) res = RES_1280;
+ else if ( strcasecmp(optarg, "1280W") == 0 ) res = RES_1280W;
else if ( strcasecmp(optarg, "1330") == 0 ) res = RES_1330;
else if ( strcasecmp(optarg, "1440") == 0 ) res = RES_1440;
else if ( strcasecmp(optarg, "1680") == 0 ) res = RES_1680;
@@ -180,6 +183,7 @@ int main(int argc, char *argv[]) {
case RES_640 : { width = 640; height = 480; break; }
case RES_800 : { width = 800; height = 600; break; }
case RES_1024 : { width = 1024; height = 768; break; }
+ case RES_1280W : { width = 1280; height = 768; break; }
case RES_1280 : { width = 1280; height = 1024; break; }
case RES_1330 : { width = 1330; height = 900; break; }
case RES_1440 : { width = 1440; height = 900; break; }