ref: ad806c65e1d9c7b1c1c98968d34aaab85f471b08
parent: 50492913a5bc5186c79471e14e85ce513c271204
author: Tanguy Fautre <tanguy@fautre.com>
date: Sat Feb 15 15:24:32 EST 2020
Increased resolution limit to 4K
--- a/Engine/src/build.h
+++ b/Engine/src/build.h
@@ -17,8 +17,8 @@
#define MAXSTATUS 1024
#define MAXPLAYERS 16
-#define MAXXDIM 1600
-#define MAXYDIM 1200
+#define MAXXDIM 4000
+#define MAXYDIM 3000
#define MAXPALOOKUPS 256
#define MAXPSKYTILES 256
#define MAXSPRITESONSCREEN 1024
--- a/Engine/src/display.c
+++ b/Engine/src/display.c
@@ -53,8 +53,8 @@
*/
-#define DEFAULT_MAXRESWIDTH 1600
-#define DEFAULT_MAXRESHEIGHT 1200
+#define DEFAULT_MAXRESWIDTH MAXXDIM
+#define DEFAULT_MAXRESHEIGHT MAXYDIM
#define UNLOCK_SURFACE_AND_RETURN if (SDL_MUSTLOCK(surface)) SDL_UnlockSurface(surface); return;
@@ -904,7 +904,7 @@
static inline void output_vesa_modelist(void)
{
- char buffer[256];
+ char buffer[512];
char numbuf[20];
int i;
@@ -929,7 +929,7 @@
static int already_checked = 0;
int i;
int stdres[][2] = {
- {320, 200}, {640, 350}, {640, 480},
+ {320, 240}, {640, 480},
{800, 600}, {1024, 768}
};