<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Fullscreen</title>
		<link>http://www.allegro.cc/forums/view/613889</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 09 Feb 2014 01:58:14 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>if (value == 1)<br />	al_set_new_display_flags(ALLEGRO_FULLSCREEN);</p><p>Why doesn&#39;t this work?</p><p>I&#39;m trying to do messagebox asking for fullscreen (yes/no)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (godzilla69)</author>
		<pubDate>Sun, 09 Feb 2014 00:19:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You have to call al_create_display too <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (torhu)</author>
		<pubDate>Sun, 09 Feb 2014 00:36:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>so here is my source code:</p><p>The program is in progress as you can see.:) I&#39;m beginner and just training.</p><p>#include&lt;allegro5\allegro.h&gt;<br />#include&lt;allegro5\allegro_native_dialog.h&gt;<br />#include&lt;iostream&gt;<br />#include&lt;allegro5\allegro_ttf.h&gt;<br />#include&lt;allegro5\allegro_font.h&gt;</p><p>#define ScreenWidth 800<br />#define ScreenHeight 600</p><p>int main ()<br />{</p><p>	ALLEGRO_DISPLAY *display;</p><p>	if(!al_init())<br />	{<br />		al_show_native_message_box(NULL, NULL,NULL, &quot;Could not initialize Allegro 5&quot;, NULL, NULL);<br />	}<br />	<br />	display = al_create_display(800, 600);<br />	al_set_window_title(display, &quot;Test&quot;);<br />	if(!display)<br />	{<br />		al_show_native_message_box(display, &quot;Title&quot;, &quot;plaa&quot;, &quot;Could not create Allegro window&quot;, NULL, ALLEGRO_MESSAGEBOX_QUESTION);<br />	}<br />	<br />	<br />int value = al_show_native_message_box(display, &quot;Fullscreen?&quot;, &quot;&quot;, &quot;Do you want to go fullscreen?(This feature is unavailable at the moment)&quot;, NULL, ALLEGRO_MESSAGEBOX_YES_NO);</p><p>	std::cout &lt;&lt; value &lt;&lt; std::endl;<br />	if (value == 1)<br />		al_set_new_display_flags(ALLEGRO_FULLSCREEN);<br />	<br />	al_init_font_addon();<br />	al_init_ttf_addon();<br />	<br />	ALLEGRO_FONT *font = al_load_font(&quot;COMICATE.TTF&quot;, 48, NULL);<br />	al_draw_text(font, al_map_rgb(44, 117, 255), ScreenWidth / 2, ScreenHeight/2, ALLEGRO_ALIGN_CENTRE, &quot;MADE BY GODZILLA69&quot;);</p><p>	al_rest(3.0);<br />	al_destroy_display(display);<br />return 0;<br />}
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (godzilla69)</author>
		<pubDate>Sun, 09 Feb 2014 00:58:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><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="number">  2</span><span class="k1">if</span> <span class="k2">(</span>value <span class="k3">=</span><span class="k3">=</span> <span class="n">1</span><span class="k2">)</span>
<span class="number">  3</span><span class="k2">{</span>
<span class="number">  4</span><a href="http://www.allegro.cc/manual/al_set_new_display_flags"><span class="a">al_set_new_display_flags</span></a><span class="k2">(</span>ALLEGRO_FULLSCREEN<span class="k2">)</span><span class="k2">;</span>
<span class="number">  5</span><a href="http://www.allegro.cc/manual/ALLEGRO_DISPLAY_MODE"><span class="a">ALLEGRO_DISPLAY_MODE</span></a>   disp_data<span class="k2">;</span>
<span class="number">  6</span><a href="http://www.allegro.cc/manual/al_get_display_mode"><span class="a">al_get_display_mode</span></a><span class="k2">(</span>N, <span class="k3">&amp;</span>disp_data<span class="k2">)</span><span class="k2">;</span>
<span class="number">  7</span>display <span class="k3">=</span> <a href="http://www.allegro.cc/manual/al_create_display"><span class="a">al_create_display</span></a><span class="k2">(</span>disp_data.width, disp_data.height<span class="k2">)</span><span class="k2">;</span>  
<span class="number">  8</span><span class="k2">}</span>
<span class="number">  9</span>...
</div></div><p>
<b>al_get_display_mode:</b><br />Retrieves a display mode. Display parameters should not be changed between a call of al_get_num_display_modes and al_get_display_mode. index must be between 0 and the number returned from al_get_num_display_modes-1. mode must be an allocated ALLEGRO_DISPLAY_MODE structure. This function will return NULL on failure, and the mode parameter that was passed in on success.<br />source: <a href="https://www.allegro.cc/manual/5/al_get_display_mode">https://www.allegro.cc/manual/5/al_get_display_mode</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Listopad)</author>
		<pubDate>Sun, 09 Feb 2014 01:06:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>nvm i got it working</p><p>Thanks for helping! <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>BTW, what does that number mean(N)?</p><p>al_get_display_mode(N, &amp;disp_data);
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (godzilla69)</author>
		<pubDate>Sun, 09 Feb 2014 01:16:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It is the index. There are many display modes. You need to fetch them 1 at a time.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (jmasterx)</author>
		<pubDate>Sun, 09 Feb 2014 01:41:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Alright, Thank you very much <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (godzilla69)</author>
		<pubDate>Sun, 09 Feb 2014 01:58:14 +0000</pubDate>
	</item>
</rss>
