<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>GFX_AUTODETECT or what</title>
		<link>http://www.allegro.cc/forums/view/464776</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 27 Feb 2005 15:27:41 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am using AUTODETECT in my program. But it seems that it doesnt work properly in linux. Should I neccesserily use AUTODETECT on all platforms.</p><p>In linux AUTODETECT fails but GFX_XWINDOWS works fine.</p><p>What are safe GFX options.</p><p>though I will allow to pass custom driver through config file.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Yogesh M)</author>
		<pubDate>Fri, 25 Feb 2005 23:46:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>thats the problem with linux.  no standard and/or too many config options.  therefore such things as AUTODETECT will sometimes fail.</p><p>the answer i guess you dont want to hear is.. linux&#39; freedoms are also its downfall. <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />    &lt;/flame bait&gt;;D
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Sat, 26 Feb 2005 01:36:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What&#39;s the error you get with GFX_AUTODETECT?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Sat, 26 Feb 2005 01:42:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>thats the problem with linux.</p></div></div><p>
No it&#39;s not. AJ, there are a lot of things that you know a lot about, so how about you don&#39;t post nonsense about things you don&#39;t know a lot about?</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>I am using AUTODETECT in my program. But it seems that it doesnt work properly in linux.</p></div></div><p>
That&#39;s strange. It works perfectly here (and currently, Allegro&#39;s Linux port is probably the best tested of all).<br />What version of Allegro and X are you using?</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>Should I neccesserily use AUTODETECT on all platforms.</p></div></div><p>
Yes.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>In linux AUTODETECT fails but GFX_XWINDOWS works fine.</p></div></div><p>
That makes no sense, as GFX_XWINDOWS should be the driver used by GFX_AUTODETECT anyway. There is a way to check which driver is selected: can you print out gfx_driver-&gt;ascii_name after calling set_gfx_mode() (ie, printf(&quot;%s\n&quot;, gfx_driver-&gt;ascii_name); - be sure to run your program from an xterm).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sat, 26 Feb 2005 15:16:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I ma using allegro 4.1.16, X version [cant remember <img src="http://www.allegro.cc/forums/smileys/embarassed.gif" alt=":-[" /> ], but In gentoo 2004.2 and debian sarge it didnt work, worked well in fedora core 1. </p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>What&#39;s the error you get with GFX_AUTODETECT?</p></div></div><p>
A black screen and goes off in a hurry.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>[Quote]<br />Should I neccesserily use AUTODETECT on all platforms.</p></div></div><p>
Yes.&lt;/quote&gt;</p><p>So, I dont need config file to pass custom driver, anyway if I want, where all other graphics driver defined.. in gfx.c I can find only </p><p>GFX_AUTODETECT<br />GFX_AUTODETECT_WINDOWED<br />GFX_AUTODETECT_FULLSCREEN</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>That makes no sense, as GFX_XWINDOWS should be the driver used by GFX_AUTODETECT anyway. There is a way to check which driver is selected: can you print out gfx_driver-&gt;ascii_name after calling set_gfx_mode() (ie, printf(&quot;%s\n&quot;, gfx_driver-&gt;ascii_name); - be sure to run your program from an xterm).</p></div></div><p>

I will do that next time; when I login to linux
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Yogesh M)</author>
		<pubDate>Sun, 27 Feb 2005 00:02:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You should try to print out allegro_error and see what it says. Quite a few Allegro functions will set that if they fail (the init functions, anyway).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Sun, 27 Feb 2005 00:12:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>anyway if I want, where all other graphics driver defined.. </p></div></div><p>
In platform specific headers. You really have no need to delve into that unless you&#39;re going to change anything in Allegro itself. They&#39;re documented anyway (see the platform specific section of Allegro&#39;s manual).</p><p>EDIT:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>I ma using allegro 4.1.16, X version</p></div></div><p>
Note that there is no such thing as `the X version of Allegro&#39; in the proper sense of the word (although it is sometimes refered to as `the X11 port&#39; what that means is `the UNIX port using the X11 system driver&#39;). The X11 version is the same as the console version is the UNIX version. That means that Allegro will compile fine if you don&#39;t have the X11 headers and development libraries installed, but it won&#39;t use X, which may not be what you expect.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sun, 27 Feb 2005 00:37:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>Note that there is no such thing as `the X version of Allegro&#39; in the proper sense of the word (although it is sometimes refered to as `the X11 port&#39; what that means is `the UNIX port using the X11 system driver&#39;). The X11 version is the same as the console version is the UNIX version. That means that Allegro will compile fine if you don&#39;t have the X11 headers and development libraries installed, but it won&#39;t use X, which may not be what you expect.</p></div></div><p>

Allegro doesnt need X???  Will allegro programs run in terminal without X. Can I compile allegro with some floppy size linux and run a piece of allegro code in fullscreen with fancy graphics.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Yogesh M)</author>
		<pubDate>Sun, 27 Feb 2005 00:48:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes to (potentially) all. I believe Allegro can do VGA 13h on it&#39;s own, but beyond that you&#39;ll need SVGALib, fbcon, or VBE/AF (which isn&#39;t well supported).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Sun, 27 Feb 2005 01:24:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are you running as root? Then Allegro would pick the DGA(2?) driver, and this one may be failing for you.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Oscar Giner)</author>
		<pubDate>Sun, 27 Feb 2005 07:02:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>That&#39;s strange. It works perfectly here (and currently, Allegro&#39;s Linux port is probably the best tested of all).</p></div></div><p>

when this problem turns out to be a badly configured X setup and/or a setup that was never considered, how are you going to disqualify what i said, after all its not likely going to be an allegro problem as <i>Allegro&#39;s Linux port is probably the best tested of all</i>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Sun, 27 Feb 2005 13:54:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>when this problem turns out to be a badly configured X setup and/or a setup that was never considered, how are you going to disqualify what i said, after all its not likely going to be an allegro problem</p></div></div><p>
Because the X11 driver should be the default one and it does work.<br />That said, Oscar has a point: it could be the DGA driver acting up.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sun, 27 Feb 2005 15:27:41 +0000</pubDate>
	</item>
</rss>
