<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Minalien.com &#187; Windows</title>
	<atom:link href="http://minalien.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://minalien.com</link>
	<description>Game Programming Weblog &#38; Portfolio</description>
	<lastBuildDate>Sat, 21 Jan 2012 23:05:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>TGB Editor Fix (Windows/Aero/OpenGL)</title>
		<link>http://minalien.com/2011/05/tgb-editor-fix-windowsaeroopengl/</link>
		<comments>http://minalien.com/2011/05/tgb-editor-fix-windowsaeroopengl/#comments</comments>
		<pubDate>Wed, 11 May 2011 05:44:20 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Aero]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[T2D]]></category>
		<category><![CDATA[Torque]]></category>
		<category><![CDATA[Torque Game Builder]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://minalien.com/?p=40</guid>
		<description><![CDATA[Anybody who runs TGB on Windows Vista/7 and has an ATI card has noticed this problem. (For some reason, I don&#8217;t think it happens on nVidia cards, but this will likely fix it there as well, if the problem does exist). This fix will allow you to maximize, resize, and minimize your Torque 2D editor  [...]]]></description>
			<content:encoded><![CDATA[<p>Anybody who runs TGB on Windows Vista/7 and has an ATI card has noticed this problem. (For some reason, I don&#8217;t think it happens on nVidia cards, but this will likely fix it there as well, if the problem does exist). This fix will allow you to maximize, resize, and minimize your Torque 2D editor window without having the offset problem, and this does not harm any other aspect of the editor that I have noticed.</p>
<p>Note that to do this fix, you will need to have the Pro edition, as it requires modification of the T2D source code. First, open &#8220;T2D SDK.rc&#8221; and create a new menu. You need to make sure that you add at least one menu option to it (I just entered a space) so that it will render the menu bar (which is the entire base of this fix). After doing this, you will need to update game/resource.h to include the menu identifier, since winWindow.cc includes that file rather than the root resource.h created by the Resource Editor.</p>
<p>File: game/resource.h<br />
Find:</p>
<pre class="brush: cpp; title: ; notranslate">
#define IDI_ICON1                       107
</pre>
<p>Add After:</p>
<pre class="brush: cpp; title: ; notranslate">
#define IDR_MENU1                       108
</pre>
<p>File: winWindow.cc<br />
Function: CreateOpenGLWindow<br />
Line: Approx 1369 (1.7.5, unmodified)</p>
<p>Replace:</p>
<pre class="brush: cpp; title: ; notranslate">
   return CreateWindowExW(
      exWindowStyle,
      windowClassName,
      windowName,
      windowStyle,
      0, 0, width, height,
      NULL, NULL,
      winState.appInstance,
      NULL);
</pre>
<p>With:</p>
<pre class="brush: cpp; title: ; notranslate">
   return CreateWindowExW(
      exWindowStyle,
      windowClassName,
      windowName,
      windowStyle,
      0, 0, width, height,
#ifdef TORQUE_TOOLS
      NULL, LoadMenu(winState.appInstance, MAKEINTRESOURCE(IDR_MENU1)),
#else
	  NULL, NULL,
#endif
      winState.appInstance,
      NULL);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://minalien.com/2011/05/tgb-editor-fix-windowsaeroopengl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

