vga_addmode(3vga)

vga_addmode3vga

Add a mode to svgalib modes list

Part of vga_addmode(3).

Usage

#include <vga.h>

int vga_addmode(int width, int height, int num_cols, int offset, int bytesperpixel )

Overview

Adds a mode to the list of modes, with the given parameters. The function returns the mode number. If such a mode already exists on the list, its number is returned, and no mode is added.

Note

Adding a mode to the list is not enough in order to use it. There must also be a timing line that fits that mode. This can be added either as a modeline in the config file, or with one of the functions vga_addtiming(3) and vga_guesstiming(3).

Releases

Unchanged in 2 releases since Debian 2.2 (Potato).

  1. 2.2–3.0

Author

This manual page was written by Matan Ziv-Av

From svgalibg1-dev 1:1.4.3-7 in Debian 3.0 (Woody). Parsed by carta from the page's man source.