<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Teeworlds Forum — Teewars Linux-x32 build with support for XRandR resolution setting.]]></title>
		<link>https://www.teeworlds.com/forum/viewtopic.php?id=428</link>
		<atom:link href="https://www.teeworlds.com/forum/extern.php?action=feed&amp;tid=428&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Teewars Linux-x32 build with support for XRandR resolution setting..]]></description>
		<lastBuildDate>Sun, 20 Jan 2008 16:02:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Teewars Linux-x32 build with support for XRandR resolution setting.]]></title>
			<link>https://www.teeworlds.com/forum/viewtopic.php?pid=2971#p2971</link>
			<description><![CDATA[<p>Here&#039;s a Linux build of Teewars 0.3.3 against GLFW from CVS head as of today (jan 20). Consider this build experimental and works-for-me.<br /><a href="http://stephan.kochen.nl/proj/teewars.gz">http://stephan.kochen.nl/proj/teewars.gz</a></p><p>This build basically supports resolution setting on recent Linux distributions, where XRandR is available. I use this to lower my resolution to something that doesn&#039;t make Teewars run at 10 FPS in shadowy areas. <img src="https://www.teeworlds.com/forum/img/smilies/smile.png" alt="smile" /></p><p>If you don&#039;t trust the above binary, here&#039;s how to build it yourself:</p><p> * Grab the teewars source and unpack.<br /> * Check out GLFW from CVS, example:<br />&nbsp; &nbsp; cvs -z3 -d:pserver:anonymous@glfw.cvs.sourceforge.net:/cvsroot/glfw co glfw<br /> * Remove the &#039;lib&#039; and &#039;include&#039; directories from teewars-src/src/engine/external/glfw/<br /> * Copy the new &#039;lib&#039; and &#039;include&#039; directories from the CVS verison of GLFW over to teewars-src/src/engine/external/glfw/<br /> * Open teewars-src/src/engine/external/glfw/lib/x11/platform.h up in a text editor, find the line (line 36):<br />&nbsp; &nbsp; #define _GLFW_X11<br />&nbsp; &nbsp;Add these new lines below it:<br />&nbsp; &nbsp; #define _GLFW_HAS_XRANDR<br />&nbsp; &nbsp; #define _GLFW_HAS_DLOPEN<br />&nbsp; &nbsp; #define _GLFW_HAS_SYSCONF<br />&nbsp; &nbsp; #define _GLFW_HAS_PTHREAD<br /> * In the same file, find the line (line 130):<br />&nbsp; &nbsp; #define _glfw_glXGetProcAddress(x) dlsym(_glfwLibs.libGL,x)<br />&nbsp; &nbsp;Change it to:<br />&nbsp; &nbsp; #define _glfw_glXGetProcAddress(x) dlsym(_glfwLibrary.Libs.libGL,x)<br /> * Open teewars-src/default.bam up in a text editor, find these lines (line 187):<br />&nbsp; &nbsp; glfw_platform = &quot;x11&quot;<br />&nbsp; &nbsp; settings.linker.libs:add(&quot;pthread&quot;)<br />&nbsp; &nbsp;Add these new lines below them:<br />&nbsp; &nbsp; settings.linker.libs:add(&quot;dl&quot;)<br />&nbsp; &nbsp; settings.linker.libs:add(&quot;Xrandr&quot;)<br /> * Now build teewars.</p><p>Thanks for the great game, devteam. <img src="https://www.teeworlds.com/forum/img/smilies/smile.png" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (glide)]]></author>
			<pubDate>Sun, 20 Jan 2008 16:02:50 +0000</pubDate>
			<guid>https://www.teeworlds.com/forum/viewtopic.php?pid=2971#p2971</guid>
		</item>
	</channel>
</rss>
