<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>al_draw_line draw wrong line.</title>
		<link>http://www.allegro.cc/forums/view/606808</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 26 Mar 2011 02:47:42 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>When I draw line, sometimes it change its color and thickness. I want to know if there is something wrong with my code or this is bug or something.</p><p>There are 2 photos of this line(only horizontal lines are bad): <a href="http://img820.imageshack.us/g/liniaz.jpg/">http://img820.imageshack.us/g/liniaz.jpg/</a>  (99 is gracz.y value)</p><p>Code:</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 1</span><span class="k1">int</span> siatka<span class="k3">=</span><span class="n">500</span><span class="k2">;</span>
<span class="number"> 2</span>
<span class="number"> 3</span>     <span class="k1">for</span><span class="k2">(</span><span class="k1">int</span> i<span class="k3">=</span><span class="n">0</span><span class="k2">;</span>i<span class="k3">&lt;</span><span class="k3">=</span><span class="n">1024</span><span class="k3">/</span>siatka<span class="k3">+</span><span class="n">1</span><span class="k2">;</span>i<span class="k3">+</span><span class="k3">+</span><span class="k2">)</span>
<span class="number"> 4</span>             <a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span>i<span class="k3">*</span>siatka<span class="k3">+</span>gracz.x%siatka,<span class="n">0</span>,i<span class="k3">*</span>siatka<span class="k3">+</span>gracz.x%siatka,monitor.y2,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
<span class="number"> 5</span>     <span class="k1">for</span><span class="k2">(</span><span class="k1">int</span> i<span class="k3">=</span><span class="n">0</span><span class="k2">;</span>i<span class="k3">&lt;</span><span class="k3">=</span><span class="n">768</span><span class="k3">/</span>siatka<span class="k3">+</span><span class="n">1</span><span class="k2">;</span>i<span class="k3">+</span><span class="k3">+</span><span class="k2">)</span>
<span class="number"> 6</span>             <a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,i<span class="k3">*</span>siatka<span class="k3">+</span>gracz.y%siatka,monitor.x2,i<span class="k3">*</span>siatka<span class="k3">+</span>gracz.y%siatka,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
</div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Tue, 22 Mar 2011 22:44:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Does <a href="http://wiki.allegro.cc/index.php?title=Grid_Coordinates_vs._Pixel_Coordinates#Pixel-Precise_Outlines">this</a> help? Basically if you only want full pixels lit make your shape cover only whole pixels.</p><p>I guess you could also disable super sampling if that&#39;s what you want - it should be off by default so you must enable it somehow right now.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Tue, 22 Mar 2011 22:49:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It didn&#39;t help. I don&#39;t know what super sampling is so I didn&#39;t enable it.</p><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">599</span>,monitor.x2,<span class="n">599</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span></span></p><p>This function draw grey, 2 pixels wide line. Why?</p><p>When I draw horizontal line 2 pixels wide it draw 1 grey pixel, 2 black pixels, 1 grey pixel but when I draw vertical line there are no problems.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Tue, 22 Mar 2011 23:07:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909447#target">iwans18</a> said:</div><div class="quote"><p>It didn&#39;t help.</p></div></div><p>It wasn&#39;t just about super-sampling. Theres some very useful information there that I think you skimmed over.</p><p>Though it sounds like you have &quot;super-sampling&quot; aka &quot;MSAA&quot; or &quot;Anti Aliasing&quot; enabled, possibly forced enabled by your graphics drivers.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Tue, 22 Mar 2011 23:29:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Why it only affects horizontal lines and how can I disable it(or check if it&#39;s enabled)?<br />And I tried <span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">100</span>.<span class="n">5</span>,<span class="n">1000</span>,<span class="n">100</span>.<span class="n">5</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span></span> but still nothing.</p><p>And if I draw<br /><span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">1</span>,<span class="n">1000</span>,<span class="n">1</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span></span><br />or<br /><span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">2</span>,<span class="n">1000</span>,<span class="n">2</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span></span><br />or<br /><span class="source-code"><a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">3</span>,<span class="n">1000</span>,<span class="n">3</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span></span><br />....</p><p>there are no problems(black 1-pixel wide line). Why??
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Tue, 22 Mar 2011 23:44:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, look at the other pictures in my link (or the <a href="http://www.allegro.cc/manual/5/primitives.html">documentation</a>).</p><p>Basically, if you draw a black line but it&#39;s not exactly covering whole pixels then the pixels will get gray according to their pixel coverage. So if you draw a vertical line which is 1 pixel wide and half of it is on the pixels to the left and half of it on the pixels to the right, then both will get 50% gray.</p><p>If you want a fully black line, then don&#39;t draw it besides the pixels, instead make it cover whole pixels. In your case that means to for example draw it from 0/1.5 to 1000/1.5 - that means you draw it in the pixel row with y=1. (If you draw from 0/1 to 1000/1 as you were doing then that means you draw it exactly between the pixel rows y=0 and y=1 so with super-sampling both get a coverage of 50%).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 23 Mar 2011 01:06:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I said that I tried!</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">54</span>,<span class="n">1000</span>,<span class="n">54</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">54</span>.<span class="n">5</span>,<span class="n">1000</span>,<span class="n">54</span>.<span class="n">5</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>.<span class="n">5</span>,<span class="n">54</span>,<span class="n">1000</span>.<span class="n">5</span>,<span class="n">54</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>.<span class="n">5</span>,<span class="n">54</span>.<span class="n">5</span>,<span class="n">1000</span>.<span class="n">5</span>,<span class="n">54</span>.<span class="n">5</span>,<a href="http://www.allegro.cc/manual/al_map_rgb"><span class="a">al_map_rgb</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

I tried every combination with &quot;.5&quot; and it didn&#39;t help. Post a code that should work and I will try it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Wed, 23 Mar 2011 20:21:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Try a combination where y1 is not equal to y2 ? Like y1=54.4 and y2=54.6, so that they &#39;surround&#39; the middle 54.5
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Audric)</author>
		<pubDate>Wed, 23 Mar 2011 20:36:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What operating system and graphics card are you using? Can you run the ex_draw example and see if it also has this problem?</p><p>This is how ex_draw looks with and without super-sampling for me:</p><p><span class="remote-thumbnail"><span class="json">{"name":"Screenshot-ex_draw-2.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/e\/6e1f3175fd92dd7356ea44c57020b3ef.png","w":650,"h":669,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/e\/6e1f3175fd92dd7356ea44c57020b3ef"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/6/e/6e1f3175fd92dd7356ea44c57020b3ef-240.jpg" alt="Screenshot-ex_draw-2.png" width="240" height="247" /></span></p><p><span class="remote-thumbnail"><span class="json">{"name":"Screenshot-ex_draw-1.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b96eee9991aecacd2b291b0201ac2961.png","w":650,"h":669,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b96eee9991aecacd2b291b0201ac2961"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/b/9/b96eee9991aecacd2b291b0201ac2961-240.jpg" alt="Screenshot-ex_draw-1.png" width="240" height="247" /></span></p><p>The case which only has completely covered pixels (3rd row, 3rd column) looks the same in both and it&#39;s also the case which should look the same on all graphics cards - most of the other cases will be drawn differently by each card.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 23 Mar 2011 22:11:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I use Windows XP Professional x84 and GeForce 7300GT.<br /><span class="remote-thumbnail"><span class="json">{"name":"63049766.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/e\/5e60081db65a89fdf37594e4b112e50f.jpg","w":646,"h":672,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/e\/5e60081db65a89fdf37594e4b112e50f"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/e/5e60081db65a89fdf37594e4b112e50f-240.jpg" alt="63049766.jpg" width="240" height="249" /></span></p><p>With supersampling on 4x or higher there is no difference.</p><p>Red rectangle is only 1 pixel wide in this example. I can&#39;t compile it I get &quot;55  &quot;invalid conversion from `void*&#39; to `unsigned char*&#39; &quot; <br /><span class="source-code"><span class="k1">unsigned</span> <span class="k1">char</span> <span class="k3">*</span>data <span class="k3">=</span> lock-&gt;data<span class="k2">;</span></span></p><p>EDIT: I changed to <span class="source-code"><span class="k2">(</span><span class="k1">unsigned</span> <span class="k1">char</span><span class="k3">*</span><span class="k2">)</span>lock-&gt;data<span class="k2">;</span></span> and compiled, but program ends immediately.</p><p>Other primitives have this problem too(e.g. rectangle)</p><p>Maybe this is compiler fault? I downloaded allegro-5.0.1-mingw-3.4.5 and I use it with default dev-C++ Compiler MinGW 3.4.2(I think)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Thu, 24 Mar 2011 00:51:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909631#target">iwans18</a> said:</div><div class="quote"><p>Maybe this is compiler fault? I downloaded allegro-5.0.1-mingw-3.4.5 and I use it with default dev-C++ Compiler MinGW 3.4.2(I think)
</p></div></div><p>

That would be my guess!  I finally threw in the towel on MinGW today, they have broken that too much for my liking.  I recommend grabbing Microsoft&#39;s Visual Studio Express 10... it&#39;s free, and free to use commercially etc... there are prebuild allegro binaries for it and a nice little MSVC project builder.  The link to the builder which has links to the binaries is here:</p><p><a href="http://www.allegro.cc/dev/template-generator/">MSVC Project Generator</a></p><p>And you shouldn&#39;t have a difficult time finding Visual Studio Express.  Unless of course you enjoy the headaches that MinGW will give you. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />  I tried compiling some libraries which I had compiled in the past and couldn&#39;t get past the bloody makefile, on other code I had that always compiled fine in the past, suddenly I get problems like you describe (const char * seems to be a popular one).  Maybe it&#39;s all nessecary, maybe not, but it has broken a lot of projects and code, after hours of work/heaches, I&#39;m switching to MSVC10. (where I&#39;m sure there will be no problems... LMAO <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Roy)</author>
		<pubDate>Thu, 24 Mar 2011 08:44:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The problems that are arising from later versions of GCC (including MinGW) are mostly due to it being stricter with standards than it had been.  Things that used to give warnings now give errors.  Of course, when the code was written, the coders should have heeded the warnings and written the code properly, so both sides are at fault.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Thu, 24 Mar 2011 11:15:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The output of ex_draw looks like it should (the rectangles are all drawn as solid lines, unlike your initial screenshots). I was kinda expecting the lines would be blurry as well, which would have hinted at some problem outside of Allegro. Not sure now what could be causing it. Maybe you can make a small compilable example which reproduces the original issue?</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909631#target">iwans18</a> said:</div><div class="quote"><p>I can&#39;t compile it I get &quot;55  &quot;invalid conversion from `void*&#39; to `unsigned char*&#39; &quot; </p></div></div><p>

That sounds like the file is being compiled as C++ instead of as C.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>Maybe this is compiler fault? I downloaded allegro-5.0.1-mingw-3.4.5 and I use it with default dev-C++ Compiler MinGW 3.4.2(I think)</p></div></div><p>

Your MinGW version seems to be quite old, I think over 6 years. So yes, I would try and upgrade to a newer version of MinGW <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /> Still, if you figure out why the file is being compiled as C++ and make it compile as C instead it probably will work with what you have.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909751#target">Neil Roy</a> said:</div><div class="quote"><p>That would be my guess!  I finally threw in the towel on MinGW today, they have broken that too much for my liking.  I recommend grabbing Microsoft&#39;s Visual Studio Express 10... it&#39;s free, and free to use commercially etc...</p></div></div><p>

The C++ compiler in VS doesn&#39;t support C99 making it utterly useless if you code in C.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909758#target">LennyLen</a> said:</div><div class="quote"><p>The problems that are arising from later versions of GCC (including MinGW) are mostly due to it being stricter with standards than it had been.</p></div></div><p>

The same is true for MSVC and a lot more than for gcc. MSVC will for example warn about simply using many standard libc functions like strcpy or strcat. (Which is probably a good thing.)</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909751#target">Neil Roy</a> said:</div><div class="quote"><p>(const char * seems to be a popular one)</p></div></div><p>
Assigning a const string to a non-const pointer will likely not work in MSVC either as it&#39;s not valid C++ as far as I know. No C compiler would complain about it though, certainly not gcc/MinGW. g++ will complain of course. But maybe I&#39;m thinking of a different issue...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Thu, 24 Mar 2011 17:39:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>MSVC has a C compiler (or mode), so there&#39;s no problems there. It does not support C99, but that doesn&#39;t make it &quot;utterly useless&quot; especially if you never even learned any of the new stuff.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Thu, 24 Mar 2011 22:18:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I was using the newest MinGW, that&#39;s where the problems all cropped up.  I reinstalled the old Mingw 3.4.2 and it all works again.  EVen after I recoded the projects so that things like char * were const char * (only a few instances of this popped up and usually in someone else&#39;s function from a library or whatever).  Code that I created from scratch always have strings as const char *.  But I still had problems anyhow.  I always heed warnings, I hate them.  I always have -Wall on so I can catch them all and when i am done, no warnings exists.  That&#39;s why it was so much more annoying when my own code suddenly wouldn&#39;t compile.  Not just the gnu compiler but the mingw32-make is broken.  It stops in some makefiles with some new error.  I looked in the makefiles (usually not my own) and I don&#39;t see the problem.   When you spend days just trying to get the tools to work, than I think that&#39;s too much.  The old tools work, I compiled up a couple 3D projects today with MingW 3.4.2 and Dev-C++ and was so relieved that they all work.  I had to undo some of the &quot;fixes&quot; I done ironically. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>I&#39;ll try MSVC... I don&#39;t actually code strictly in C, I actually prefer C++, I just don&#39;t tend to use the classes.  Although I have put forth an effort to use them more so that wouldn&#39;t be a problem with MSVC.  If I had to code strictly in C, I could do so no problem, C99 isn&#39;t a necessity.</p><p>Anyhow, back on topic... I don&#39;t like the way Allegro draws primitives.  I understand the logic behind how it is done, I just think there should be an option for the standard pixel functions, especially seeing that not all cards treat the sub pixel drawing the same gives even more reason to have standard pixel drawing functions for primitives.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Roy)</author>
		<pubDate>Fri, 25 Mar 2011 00:18:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909834#target">Neil Roy</a> said:</div><div class="quote"><p> I don&#39;t like the way Allegro draws primitives.  I understand the logic behind how it is done, I just think there should be an option for the standard pixel functions, especially seeing that not all cards treat the sub pixel drawing the same gives even more reason to have standard pixel drawing functions for primitives.</p></div></div><p>Doesn&#39;t that imply that Allegro needs to have special cases for every card in existence?  As well as every card that will be put on the market in the future?</p><p>The alternative would be to use software rendering and copy the pixels to the frame buffer, and we&#39;re back to A4 again.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Fri, 25 Mar 2011 00:27:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Adding in support for A4 style pixel rendering wouldn&#39;t mean going back to doing things like A4, it just means adding in an extra option for those that want it.  Gawd, it doesn&#39;t have to be one or the other, it can be both.  That would make A5 an even better library in my opinion, especially given the problems people are having with the simplest of tasks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Roy)</author>
		<pubDate>Fri, 25 Mar 2011 00:57:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909834#target">Neil Roy</a> said:</div><div class="quote"><p>
especially seeing that not all cards treat the sub pixel drawing the same gives even more reason to have standard pixel drawing functions for primitives.
</p></div></div><p>
How on earth does it give more reason to have them, given that there is no such thing as sub-pixel drawing in A4?</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/606808/909844#target">Neil Roy</a> said:</div><div class="quote"><p>
Adding in support for A4 style pixel rendering wouldn&#39;t mean going back to doing things like A4, it just means adding in an extra option for those that want it.  Gawd, it doesn&#39;t have to be one or the other, it can be both.
</p></div></div><p>
I still see no reason why A4 style functions are necessary.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Fri, 25 Mar 2011 02:07:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The point of super sampling is that you don&#39;t see pixels any longer. At all. It doesn&#39;t matter whether the actual RGBA values are the same or not, you cannot see the difference. Just look at any modern game.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 25 Mar 2011 05:36:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am ALLLL for anti-aliasing, allegro 5 sets it up nicely so the pixels are drawn so they won&#39;t be aliased... only there doesn&#39;t seem to be a function to enable anti-aliasing on primitives.  So the drawing is set up so you can have them anti-aliased, you use them and you see pixels, only they&#39;re not being drawn where you want them to be... either bring back pixel functions like A4 or provide a way to enable anti-aliasing.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Roy)</author>
		<pubDate>Fri, 25 Mar 2011 05:44:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>There is no anti-aliasing by default (the issue in this thread is a bug) - and the mid-point rule of filled shapes means you can draw 100% exact pixel outlines. You just can&#39;t use the same coordinate system as in A4 because we changed to floating point coordinates which makes more sense when you are using transformations.</p><p>Whether super-sampling and texture filtering should be on by default is another question... maybe they should be. But it&#39;s just one line of code to enable each so I don&#39;t think it&#39;s a big problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Fri, 25 Mar 2011 05:56:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried out the drawing example after recompiling with MSVC, when I enabled super sampling to anything other than zero (I tried 4, then 3, 2, 1...) it crashes on me.</p><p>I also noticed... when drawing a filled rectangle 1,1 (row 1, col 1) was the most accurate, but a rectangle (unfilled) as done in these examples it was 3,3 that was the most accurate.  WIth filled circles, 1,1 was most accurate (3,3 was a square) regular circle it was 3,3, a line was 1,1 (3,3 is off by one pixel).  Just some consistency would be nice.  It would clear up the confusion anyhow.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Roy)</author>
		<pubDate>Fri, 25 Mar 2011 06:11:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Still can&#39;t think of anything. I downloaded CodeBlocks and use it with GNU GCC 4.4.1 compiler and it still draw grey line instead black. I can&#39;t install MSVC.</p><p><span class="remote-thumbnail"><span class="json">{"name":"64791226.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/c\/5cf34d33fb7fcc9994a2afe2e76de571.jpg","w":1003,"h":565,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/c\/5cf34d33fb7fcc9994a2afe2e76de571"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/c/5cf34d33fb7fcc9994a2afe2e76de571-240.jpg" alt="64791226.jpg" width="240" height="135" /></span></p><p>You can see that one time line is good and one time it&#39;s blurred.</p><p><span class="remote-thumbnail"><span class="json">{"name":"14776220.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/f\/5fac3ad05252b9be1551531ae76d2e6a.jpg","w":1024,"h":735,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/f\/5fac3ad05252b9be1551531ae76d2e6a"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/f/5fac3ad05252b9be1551531ae76d2e6a-240.jpg" alt="14776220.jpg" width="240" height="172" /></span></p><p>^^^ </p><div class="source-code snippet"><div class="inner"><pre><span class="k1">for</span><span class="k2">(</span><span class="k1">int</span> i<span class="k3">=</span><span class="n">0</span><span class="k2">;</span>i<span class="k3">&lt;</span><span class="n">10</span><span class="k2">;</span>i<span class="k3">+</span><span class="k3">+</span><span class="k2">)</span>
                <a href="http://www.allegro.cc/manual/al_draw_line"><span class="a">al_draw_line</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">100</span><span class="k3">*</span>i,<span class="n">1000</span>,<span class="n">100</span><span class="k3">*</span><span class="k2">(</span>i<span class="k3">+</span><span class="n">1</span><span class="k2">)</span>,<a href="http://www.allegro.cc/manual/al_color_name"><span class="a">al_color_name</span></a><span class="k2">(</span><span class="s">"red"</span><span class="k2">)</span>,<span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Fri, 25 Mar 2011 21:17:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The only thing I can think of is that somehow you have multi-sampling turned on by default. Try adding these lines before you create your display:</p><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/al_set_new_display_option"><span class="a">al_set_new_display_option</span></a><span class="k2">(</span>ALLEGRO_SAMPLE_BUFFERS, <span class="n">0</span>, ALLEGRO_REQUIRE<span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/al_set_new_display_option"><span class="a">al_set_new_display_option</span></a><span class="k2">(</span>ALLEGRO_SAMPLES, <span class="n">0</span>, ALLEGRO_REQUIRE<span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Fri, 25 Mar 2011 22:30:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Still nothing ;/  Bitmap is blurred too <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /> </p><p>EDIT: I have no idea why but it works now(I didn&#39;t change anything)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (iwans18)</author>
		<pubDate>Sat, 26 Mar 2011 02:47:42 +0000</pubDate>
	</item>
</rss>
