| Reference Manual - 1.4.13

IDirectFB | SetVideoMode

#### Switch the current video mode (primary layer).

DFBResult SetVideoMode (
| IDirectFB |  | * | thiz,
| int |  |  | width,
| int |  |  | height,
| int |  |  | bpp
);

If in shared cooperative level this function sets the resolution of the window that is created implicitly for the primary surface.

The following values are valid for bpp: 2, 8, 12, 14, 15, 18, 24, 32. These will result in the following formats, respectively: DSPF_LUT2, DSPF_LUT8, DSPF_ARGB4444, DSPF_ARGB2554, DSPF_ARGB1555, DSPF_RGB16, DSPF_RGB18, DSPF_RGB24, DSPF_RGB32.

| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License