diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-05-25 17:43:38 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-05-25 17:43:38 +0000 |
commit | 31b50dfc5ebfb3b2444cbea985195c24c8918ea2 (patch) | |
tree | 0012398cbbb584394cc85899761039e809d81a95 /src | |
parent | fd1f182df5b190c5e1a64b230a4c3a6591939a72 (diff) |
Add 1024x768 resolution
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@41 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,7 @@ typedef enum { RES_640, RES_800, + RES_1024, RES_1280, RES_1330, RES_1440, @@ -63,6 +64,7 @@ int main(int argc, char *argv[]) { case 'r' : { if ( strcasecmp(optarg, "640") == 0 ) res = RES_640; 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, "1330") == 0 ) res = RES_1330; else if ( strcasecmp(optarg, "1440") == 0 ) res = RES_1440; @@ -95,6 +97,7 @@ int main(int argc, char *argv[]) { printf("<res> Width Height\n"); printf(" 640 - 640 x 480\n"); printf(" 800 - 800 x 600 (this is the default)\n"); + printf(" 1024 - 1024 x 768\n"); printf(" 1280 - 1280 x 1024\n"); printf(" 1330 - 1330 x 900 (widescreen)\n"); printf(" 1440 - 1440 x 900 (widescreen)\n"); @@ -123,6 +126,7 @@ int main(int argc, char *argv[]) { switch ( res ) { 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_1280 : { width = 1280; height = 1024; break; } case RES_1330 : { width = 1330; height = 900; break; } case RES_1440 : { width = 1440; height = 900; break; } |