set MAXVIDWIDTH and MAXVIDHEIGHT to 8192
should accomidate absolutely everything
This commit is contained in:
1 parent
2cabe11652
commit
30b940b9fd
2 files changed
+4
-8
No files matched your search
+2
-2
@@ -1060,7 +1060,7 @@ static boolean M_SetupaPNG(png_const_charp filename, png_bytep pal)
|
||||
png_init_io(apng_ptr, apng_FILE);
|
||||
|
||||
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
||||
png_set_user_limits(apng_ptr, MAXPNGWIDTH, MAXPNGHEIGHT);
|
||||
png_set_user_limits(apng_ptr, MAXVIDWIDTH, MAXVIDHEIGHT);
|
||||
#endif
|
||||
|
||||
//png_set_filter(apng_ptr, 0, PNG_ALL_FILTERS);
|
||||
@@ -1375,7 +1375,7 @@ boolean M_SavePNG(const char *filename, void *data, int width, int height, const
|
||||
png_init_io(png_ptr, png_FILE);
|
||||
|
||||
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
||||
png_set_user_limits(png_ptr, MAXPNGWIDTH, MAXPNGHEIGHT);
|
||||
png_set_user_limits(png_ptr, MAXVIDWIDTH, MAXVIDHEIGHT);
|
||||
#endif
|
||||
|
||||
//png_set_filter(png_ptr, 0, PNG_ALL_FILTERS);
|
||||
|
||||
+2
-6
@@ -39,15 +39,11 @@
|
||||
// we try to re-allocate a minimum of buffers for stability of the memory,
|
||||
// so all the small-enough tables based on screen size, are allocated once
|
||||
// and for all at the maximum size.
|
||||
#define MAXVIDWIDTH 5120 // don't set this too high because actually
|
||||
#define MAXVIDHEIGHT 2880 // lots of tables are allocated with the MAX size.
|
||||
#define MAXVIDWIDTH 8192 // don't set this too high because actually
|
||||
#define MAXVIDHEIGHT 8192 // lots of tables are allocated with the MAX size.
|
||||
#define BASEVIDWIDTH 320 // NEVER CHANGE THIS! This is the original
|
||||
#define BASEVIDHEIGHT 200 // resolution of the graphics.
|
||||
|
||||
// max res for png capture; just here to prevent some crashes on very high resolutions; tho you should never go this high cause ogl allocs certain things with MAXVIDWIDTH and MAXVIDHEIGHT too Zzz...
|
||||
#define MAXPNGWIDTH 7680
|
||||
#define MAXPNGHEIGHT 4320
|
||||
|
||||
// global video state
|
||||
typedef struct viddef_s
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user