Set the graphics mode

The function call in Listing 4 sets the graphics mode to a 320x240-pixel window as shown in Figure 1.

Listing 4. Set the graphics mode.
  set_gfx_mode(GFX_AUTODETECT_WINDOWED,
               320,240,
               0,0);

The first parameter sets the graphics mode to a window whose rectangular size is specified by the second and third parameters.