diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-07-22 23:18:24 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-07-22 23:18:24 +0200 |
commit | e73a0c298a664fa822adb6f0efd56fe55c968ccc (patch) | |
tree | dad1567427465beaac0c2ad89962a88aead22be2 | |
parent | 50b86d35e9c8c9946746df5a2692d561ddacceaf (diff) |
Add 1920x1080 resolution
-rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -48,7 +48,8 @@ typedef enum { RES_1280W, RES_1330, RES_1440, - RES_1680 + RES_1680, + RES_1920 } ScreenResolution; static void main_version() { @@ -82,6 +83,7 @@ static void main_help(const char *n) { printf(" 1330 - 1330 x 900 (widescreen)\n"); printf(" 1440 - 1440 x 900 (widescreen)\n"); printf(" 1680 - 1680 x 1050 (widescreen)\n"); + printf(" 1920 - 1920 x 1080 (widescreen)\n"); printf("\n"); main_version(); } @@ -145,6 +147,7 @@ int main(int argc, char *argv[]) { 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; + else if ( strcasecmp(optarg, "1920") == 0 ) res = RES_1920; else { fprintf(stderr, "Unrecognised resolution '%s'\n", optarg); exit(1); @@ -201,6 +204,7 @@ int main(int argc, char *argv[]) { case RES_1330 : { width = 1330; height = 900; break; } case RES_1440 : { width = 1440; height = 900; break; } case RES_1680 : { width = 1680; height = 1050; break; } + case RES_1920 : { width = 1920; height = 1080; break; } default : { assert(this_point_not_reached); break; } } screen = SDL_SetVideoMode(width, height, 16, video_flags); |