1is_windowed_mode(3) Allegro manual is_windowed_mode(3)
2
3
4
6 is_windowed_mode - Tells if you are running in windowed mode. Allegro
7 game programming library.
8
10 #include <allegro.h>
11
12
13 int is_windowed_mode(void);
14
16 This function can be used to detect whether or not set_gfx_mode()
17 selected a windowed mode. Example:
18
19 if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0)
20 abort_on_error("Couldn't set graphic mode!");
21 if (is_windowed_mode()) {
22 /* Windowed mode stuff. */
23 } else {
24 /* Fullscreen mode stuff. */
25 }
26
28 Returns true if the current graphics mode is a windowed mode, or zero
29 if it is a fullscreen mode. You should not call this function if you
30 are not in graphics mode.
31
32
34 set_gfx_mode(3)
35
36
37
38Allegro version 4.4.3 is_windowed_mode(3)