is_windowed_mode
Tells if you are running in windowed mode.
Description
This function can be used to detect wether or not set_gfx_mode() selected
a windowed mode. Example:
if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0)
abort_on_error("Couldn't set graphic mode!");
if (is_windowed_mode()) {
/* Windowed mode stuff. */
} else {
/* Fullscreen mode stuff. */
}
Returns true if the current graphics mode is a windowed mode, or zero if
it is a fullscreen mode. You should not call this function if you are not
in graphics mode.
Related Discussions
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword: