restore behavior insisting on 640x480x16 mode for low-mem cards

This commit is contained in:
David Rose 2003-03-18 22:01:58 +00:00
parent f7934d63c9
commit d652035d81
4 changed files with 1409 additions and 12 deletions

View File

@ -58,3 +58,8 @@ int gl_force_pixfmt = config_wgldisplay.GetInt("gl-force-pixfmt", 0);
// Set this true to force all GL windows to fail to open correctly.
bool gl_force_invalid = config_wgldisplay.GetBool("gl-force-invalid", false);
// This is true to insist that low-memory cards open only 640x480
// fullscreen windows, no matter what resolution of window was
// requested. It only affects fullscreen windows.
bool gl_do_vidmemsize_check = config_wgldisplay.GetBool("gl-do-vidmemsize-check", true);

View File

@ -28,5 +28,6 @@ extern EXPCL_PANDAGL void init_libwgldisplay();
extern int gl_force_pixfmt;
extern bool gl_force_invalid;
extern bool gl_do_vidmemsize_check;
#endif

File diff suppressed because it is too large Load Diff

View File

@ -39,8 +39,10 @@ public:
virtual void begin_flip();
protected:
virtual bool open_window();
virtual void close_window();
virtual bool open_window();
virtual void reconsider_fullscreen_size(DWORD &x_size, DWORD &y_size,
DWORD &bitdepth);
private:
int choose_pfnum() const;