Display Control Functions
Used to control screen/adapter related functions.
SetFullScreen
Function Prototypes
- void SetFullScreen(int display, winprop mode = winprops::fullscreen)
Sets the requested display to the requested mode. - void SetFullScreen(winprop mode = winprops::fullscreen)
Sets the default screen to the selected mode.
Return Value
- None
Possible Known Exceptions
- std::logic_error
- std::runtime_error
Other Details / Notes
- If the user tries to switch to fullscreen with two windows active it will throw std::logic_error
- If the system fails to switch to fullscreen then it will throw std::runtime_error
- Function needs some re-writing to take into account multiple displays.