---
name: "vga_guesstiming"
section: "3"
platform: "linux"
package: "libsvga1-dev"
version: "1:1.4.3-33"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/vga_guesstiming"
---

# vga\_guesstiming(3)

calculate a timing line for the given resolution

## NAME

vga\_guesstiming - calculate a timing line for the given resolution

## SYNOPSIS

**#include \<vga.h\>**

**int vga\_guesstiming(int x, int y, int clue, int arg);**

## DESCRIPTION

Calculates a timing line for a  **x\*y** resolution, according to the value of  **clue.**

## CALCULATION METHODS

If  **clue** is 0, then the aspect ratio for the requested mode ( **x:y** ) must be 4:3. A mode with the same aspect ratio closest to the requested, while still having a higher resolution is found, and then scaled down to the requested mode.

If  **clue** is 1, then the aspect ratio for the requested mode ( **x:y** ) must be 4:3. A mode with the same aspect ratio closest to the requested, while still having a lower resolution is found, and then scaled down to the requested mode.

## BUGS

No guarantee that a modeline will be created, or that a created modeline will be usefull is given.

## SEE ALSO

[**vga\_addmode**(3)](/vga_addmode/3.md) [**vga\_addtiming**(3)](/vga_addtiming/3.md) **addmodetest**(6)

## AUTHOR

This manual page was written by Matan Ziv-Av
