<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro Resolution Headache</title>
		<link>http://www.allegro.cc/forums/view/615985</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 19 Jan 2016 06:42:19 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Although this happened a few days ago, I thought I&#39;d share perhaps to prevent anyone else from going through the same thing.</p><p>I spent over an hour double checking my code and having the program report the dimensions of the monitor and the window created. Previously it would auto-detect and fit within this area, and also center the window on the screen.</p><p>What was happening was everything the window created was too large. The content would go off-screen, the window wouldn&#39;t even center itself correctly anymore, and the reported window size was inconsistent with the actual dimensions when I took a screenshot and measured. It was like every value pertaining to x/y coordinates was multiplied.</p><p>Turns out that&#39;s exactly what the problem was. I had set up a new monitor to output 1080p and had unwittingly checked Windows &quot;Make text and other items larger or smaller&quot; and it turns out that applies some kind of transformation matrix over everything -- the Allegro program didn&#39;t even realize it, but some other programs seemed to adjust to handle it better.</p><p>If I had to guess most gamers wouldn&#39;t use that feature, but it was still disappointing to have Windows bully Allegro like that. Or maybe Allegro was just sick of it and not taking anymore crap from Windows <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Felix-The-Ghost)</author>
		<pubDate>Thu, 14 Jan 2016 11:45:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I got hit by it already, too (<a href="https://www.allegro.cc/forums/thread/615661/1016119#target">forum post</a>, <a href="https://github.com/liballeg/allegro5/issues/479">bugreport</a>). I do use the scaling (140-150 per cent) by default.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Gassa)</author>
		<pubDate>Sat, 16 Jan 2016 04:11:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>MS was forced to implement scaling like that due to too many programs not being DPI-aware and becoming unusable when the system is set to anything other than 96 dpi.  So instead the window manager just runs the app at 96 dpi and scales it up to match the rest of the system (particularly important for 4K displays, where you pretty much have to up the DPI to make the system usable without squinting).</p><p>To fix this, you have to include a dpiAware flag in your manifest (I don&#39;t remember the exact details right now, Google is your friend).  Once you do that your game should run at exactly the requested resolution.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Pascoe)</author>
		<pubDate>Sat, 16 Jan 2016 10:02:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Actually... I&#39;m confused here. It seems that it works fine if the window created is small. Is the issue only when the window is huge?</p><p>I set my desktop scaling to 125%, and all the Allegro examples seem to function fine.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sat, 16 Jan 2016 11:00:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Did you try at 150%?  I think 125% doesn&#39;t trigger the scaling behavior.  At least that was the case in Vista/7.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Pascoe)</author>
		<pubDate>Sat, 16 Jan 2016 11:11:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>With 150% and Aero enabled, I finally observed scaling. Nevertheless, the Allegro examples I tried still functioned fine, scaled or not (the &#39;not&#39; achieved by adding a manifest).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sat, 16 Jan 2016 11:41:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m definitely interested in this issue moving forward. DPI-scaling is the future and we&#39;ll need to be aware of any complications with it when we go to distribute/sell our games.</p><p>Another issue that many libraries fail at is assuming RGB sub-pixel ordering for ClearType. I have a BGR TV and last year 1 in 5 programs assumed the wrong order and looked horrendous. Chrome, PDF readers, Steam, and more. Many of those are fixed now though, thank goodness.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Sun, 17 Jan 2016 02:12:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I thought it was the operating system that handled ClearType rendering?  So in that case you&#39;d have to use the built-in ClearType tuner, individual apps have nothing to do with it I don&#39;t think...?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Pascoe)</author>
		<pubDate>Sun, 17 Jan 2016 07:15:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Only if the app uses the font engine of the OS does that happen.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MiquelFire)</author>
		<pubDate>Sun, 17 Jan 2016 08:08:27 +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/615985/1019067#target">Chris Katko</a> said:</div><div class="quote"><p>DPI-scaling is the future and we&#39;ll need to be aware of any complications with it when we go to distribute/sell our games.</p></div></div><p>Certainly.  I&#39;ve already run into complications with the retina display on my MacBook Pro.  Mouse cursor placement positions are a little wack, resolutions are a bit complex with app bundles and all that.</p><p>I haven&#39;t sorted it all out yet. <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sun, 17 Jan 2016 10:06:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I thought everything worked fine with retina displays on OSX... given how much time I spent on this issue on that platform, it should have the best support <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 18 Jan 2016 11:15:20 +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/615985/1019097#target">SiegeLord</a> said:</div><div class="quote"><p> I thought everything worked fine with retina displays on OSX... given how much time I spent on this issue on that platform, it should have the best support <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />.</p></div></div><p>It&#39;s probably that I just don&#39;t know how to Do It Right™.  The thing that I haven&#39;t really had time to investigate is that <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_mouse_xy"><span class="a">al_set_mouse_xy</span></a><span class="k2">(</span><span class="k2">)</span></span> seems to jump around.</p><p>I have a GUI knob and the expected behavior is that when you mousedown/drag on the widget, your mouse cursor will disappear (so you can see the values on the knobs) and the cursor will always remain at the center of the widget until you release the mouse.  In Windows, the behavior was achieved by using <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_mouse_xy"><span class="a">al_set_mouse_xy</span></a><span class="k2">(</span><span class="k2">)</span></span> anytime a mouse axis event is fired, to reposition the mouse back onto the center of the widget.</p><p>Doesn&#39;t work in OSX (retina?) though; don&#39;t know why.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Tue, 19 Jan 2016 06:42:19 +0000</pubDate>
	</item>
</rss>
