<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SDL applications and Maemo&#8217;s Task Navigator</title>
	<atom:link href="http://www.colino.net/wordpress/archives/2008/01/17/sdl-applications-and-maemos-task-navigator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.colino.net/wordpress/archives/2008/01/17/sdl-applications-and-maemos-task-navigator/</link>
	<description>news for few, stuff no-one cares about</description>
	<lastBuildDate>Mon, 23 Jan 2012 19:44:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: AR</title>
		<link>http://www.colino.net/wordpress/archives/2008/01/17/sdl-applications-and-maemos-task-navigator/comment-page-1/#comment-166292</link>
		<dc:creator>AR</dc:creator>
		<pubDate>Tue, 05 May 2009 11:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.colino.net/wordpress-1.5/archives/2008/01/17/sdl-applications-and-maemos-task-navigator/#comment-166292</guid>
		<description>Hi, can you show me how I make this simple sdl-application visible in Task Navigator? 

#include &quot;SDL.h&quot;

#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define SCREEN_DEPTH 8

int main(int argc, char *argv[]) {
     SDL_Surface *screen;
     Uint8       *p;
int         x = 10, y = 20;
     

     /* Initialize SDL */
     SDL_Init(SDL_INIT_VIDEO);
     
     /* Initialize the screen / window */
     screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_DEPTH, SDL_SWSURFACE);
     
     /* Make p point to the place we want to draw the pixel */
     p = (Uint8 *)screen-&gt;pixels + y * screen-&gt;pitch + x * screen-&gt;format-&gt;BytesPerPixel;
     
     /* Draw the pixel! */
     *p=0xff;
     
     /* update the screen (aka double buffering) */
     SDL_Flip(screen);
     while(1);
}</description>
		<content:encoded><![CDATA[<p>Hi, can you show me how I make this simple sdl-application visible in Task Navigator? </p>
<p>#include &#8220;SDL.h&#8221;</p>
<p>#define SCREEN_WIDTH 320<br />
#define SCREEN_HEIGHT 240<br />
#define SCREEN_DEPTH 8</p>
<p>int main(int argc, char *argv[]) {<br />
     SDL_Surface *screen;<br />
     Uint8       *p;<br />
int         x = 10, y = 20;</p>
<p>     /* Initialize SDL */<br />
     SDL_Init(SDL_INIT_VIDEO);</p>
<p>     /* Initialize the screen / window */<br />
     screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_DEPTH, SDL_SWSURFACE);</p>
<p>     /* Make p point to the place we want to draw the pixel */<br />
     p = (Uint8 *)screen-&gt;pixels + y * screen-&gt;pitch + x * screen-&gt;format-&gt;BytesPerPixel;</p>
<p>     /* Draw the pixel! */<br />
     *p=0xff;</p>
<p>     /* update the screen (aka double buffering) */<br />
     SDL_Flip(screen);<br />
     while(1);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

