Re: Modeline ?

Search this archive.

From: Bottaioli Alessandro (a.bottaioli@saedi.it)
Date: Mon 23 Sep 2002 - 19:42:29 IDT


On Mon, 23 Sep 2002, Matan Ziv-Av wrote:

> On Mon, 23 Sep 2002, Alessandro Bottaioli wrote:
> 
> If it's a modeline for an existing mode, then svgalib picks the modeline
> with the highest refresh rate that fits the limits, so set the limits to
> ones that allow only your mode line.
> If it's for a new mode, either use newmode in the config file, or use
> vga_addmode() function.
> If you ask about how to add a modeline in the program, rather that by
> editting config file, then use vga_addtiming() function.
> 

Excuse for my English.  I would want to use the card vga in order to pilot 
a tv (pal format) in a program for industrial automation.
I would want to realize a video generator using the libsvga.

The modeline is:
modeline "pal" 5.0 278 280 310 320  598 602 618 626 -hsync -vsync -interlaced

The function vga_addmode gives back the big value (1108542220).
I do not succeed to understand where it is the error.  

The code:
	int nPalMode = 0;
	vga_addtiming (5, 278, 280, 310, 320, 598, 602, 618, 626, 0);
	nPalMode = vga_addmode (278, 598, 16, 0, 4);
	if (!vga_hasmode(VGAMODE)) 
	{
        	perror("Mode not available.\n");
        	return -1;
    	}

You can give some suggestion to me?
Thanks.

-- 

Alessandro Bottaioli
http://www.bottaioli.it


------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:25 IST