Error MASKING_DLL_DECLSPEC ChangeResolution

(int mode,
  bool fullscreen,
  int w,
  int h,
  int bpp,
  Dialog* mainDlg = NULL)

Attempts to change the graphics driver and the screen resolution to the requested settings.

Documentation

Attempts to change the graphics driver and the screen resolution to the requested settings. If the function fails it changes the resolution back to the original settings if available and returns an error. If you're changing the resolution on the fly when a dialog is executing you should pass a pointer to the main dialog of the program so it can be resized according to the new settings.

Note: if mode is anything other than one of the GFX_AUTODETECT constants, fullscreen is ignored. Otherwise mode is ignored and set to either GFX_AUTODETECT_FULLSCREEN or GFX_AUTODETECT_WINDOWED depending on the value of fullscreen.

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++