<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emscripten/src/shell.html, branch 1.5.1</title>
<subtitle>Emscripten: An LLVM-to-JavaScript Compiler</subtitle>
<id>https://git.amat.us/emscripten/atom/src/shell.html?h=1.5.1</id>
<link rel='self' href='https://git.amat.us/emscripten/atom/src/shell.html?h=1.5.1'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/'/>
<updated>2013-03-20T17:28:17Z</updated>
<entry>
<title>Remove border from canvas</title>
<updated>2013-03-20T17:28:17Z</updated>
<author>
<name>Vladimir Vukicevic</name>
<email>vladimir@pobox.com</email>
</author>
<published>2013-03-20T17:28:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=1b8d4a444bf0493e253c99b5d6e2c5b63370cc56'/>
<id>urn:sha1:1b8d4a444bf0493e253c99b5d6e2c5b63370cc56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>enable pointer lock checkbox by default</title>
<updated>2013-03-06T20:44:29Z</updated>
<author>
<name>Alon Zakai</name>
<email>alonzakai@gmail.com</email>
</author>
<published>2013-03-06T20:44:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=756ab650e0548fd4d37637560f8ed76703723671'/>
<id>urn:sha1:756ab650e0548fd4d37637560f8ed76703723671</id>
<content type='text'>
</content>
</entry>
<entry>
<title>realize fullscreen options (resize canvas and lock pointer) with checkboxes</title>
<updated>2013-03-06T09:44:36Z</updated>
<author>
<name>Michael Riss</name>
<email>Michael.Riss@gmx.de</email>
</author>
<published>2013-03-03T20:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=aaa428216a0c4b8b3b1ab76d53a0a61edf2c974e'/>
<id>urn:sha1:aaa428216a0c4b8b3b1ab76d53a0a61edf2c974e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixes for the full screen implementation:</title>
<updated>2013-03-06T09:44:36Z</updated>
<author>
<name>Michael Riss</name>
<email>Michael.Riss@gmx.de</email>
</author>
<published>2013-02-21T11:11:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=a7fa2859f29a1e9a4ed629c4105d56c83a9ea7fb'/>
<id>urn:sha1:a7fa2859f29a1e9a4ed629c4105d56c83a9ea7fb</id>
<content type='text'>
- formatting fixes
- added comments (for the SDL_FULLSCREEN flag)
- add event handlers only once and communicate through object variables
  (Browser.lockPointer and Browser.resizeCanvas)

Signed-off-by: Michael Riss &lt;Michael.Riss@gmx.de&gt;
</content>
</entry>
<entry>
<title>Improved fullscreen functionality.</title>
<updated>2013-03-06T09:43:17Z</updated>
<author>
<name>Michael Riss</name>
<email>Michael.Riss@gmx.de</email>
</author>
<published>2013-02-11T21:03:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=0b364c0894cafda3c925639a9835c67c36bbc882'/>
<id>urn:sha1:0b364c0894cafda3c925639a9835c67c36bbc882</id>
<content type='text'>
- the requestFullScreen function now has two boolean arguments:
  "doLockPointer" and "doResizeCanvas"
- when using "doResizeCanvas", the SDL application gets notified via the
  "SDL_VIDEORESIZE" event of the new resolution, the old resolution setting
  is saved and gets restored when the canvas returns to windowed mode
- when setting "doLockPointer" to false the mouse pointer remains visible
  in fullscreen mode and allows e.g. RTS (Real Time Strategy) type games
- the SDL application can check via the "SDL_FULLSCREEN" flag in the flags
  field of the SDL_Surface struct whether the canvas is currently
  in fullscreen mode or not.
- depending on the browser the SDL application can switch out of the
  fullscreen mode with the "SDL_WM_ToggleFullScreen(SDL_Surface*);" call
  (currently chrome supports it, firefox does not)
- Also, the requestFullScreen has been fixed to avoid repeated adding of
  the event listeners every time requestFullScreen is called.
- src/shell.html got changed to demonstrate all variants to switch to
  fullscreen mode

Note:
Due to the security model of web browsers, the SDL model cannot be
fully supported.

What is not possible?
- Initiating the switch to fullscreen from the SDL application.
- Initiating the pointer lock from the SDL application when *not* in
  fullscreen mode

How to work around the limitations?
All the actions that cannot be initiated by the SDL application have to be
initiated by the web browser instead.

A good practice should be to start the application in windowed mode and
have a button situated close to the canvas which switches the canvas into
fullscreen mode and also changes the canvas size to fullscreen resolution.
This way, the SDL application receives a SDL_VIDEORESIZE event and can
check in the even handler whether it is now in fullscreen mode and take
further actions.
When leaving fullscreen mode the old windowed canvas resolution gets
restored and triggers another SDL_VIDEORESIZE event which - again - can be
used to adapt the application to windowed mode.

Signed-off-by: Michael Riss &lt;Michael.Riss@gmx.de&gt;
</content>
</entry>
<entry>
<title>support multiple arguments to default html print, printErr</title>
<updated>2013-02-28T15:28:22Z</updated>
<author>
<name>Alon Zakai</name>
<email>alonzakai@gmail.com</email>
</author>
<published>2013-02-28T15:28:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=4b57c3cc7b5abd704b682dc4eb72606088af8344'/>
<id>urn:sha1:4b57c3cc7b5abd704b682dc4eb72606088af8344</id>
<content type='text'>
</content>
</entry>
<entry>
<title>show progress on datafile download</title>
<updated>2012-08-10T00:32:10Z</updated>
<author>
<name>Alon Zakai</name>
<email>alonzakai@gmail.com</email>
</author>
<published>2012-08-10T00:32:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=609fa655772655c6376fb7eff8860a9b3c83c6e9'/>
<id>urn:sha1:609fa655772655c6376fb7eff8860a9b3c83c6e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>center progress</title>
<updated>2012-07-24T04:36:23Z</updated>
<author>
<name>Alon Zakai</name>
<email>alonzakai@gmail.com</email>
</author>
<published>2012-07-24T04:36:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=9ce4bbf9a339c2679cca85806f6a9c5ad9260ef6'/>
<id>urn:sha1:9ce4bbf9a339c2679cca85806f6a9c5ad9260ef6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add progress to shell.html</title>
<updated>2012-07-23T20:18:20Z</updated>
<author>
<name>Alon Zakai</name>
<email>alonzakai@gmail.com</email>
</author>
<published>2012-07-23T20:18:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=a389d5daf6446dfd0c703c362b042b19b8d9578f'/>
<id>urn:sha1:a389d5daf6446dfd0c703c362b042b19b8d9578f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>nicer status text</title>
<updated>2012-07-21T16:48:20Z</updated>
<author>
<name>Alon Zakai</name>
<email>alonzakai@gmail.com</email>
</author>
<published>2012-07-21T16:48:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten/commit/?id=75bf701aa2b9e946ecb1e7f741c3a9b3ede43573'/>
<id>urn:sha1:75bf701aa2b9e946ecb1e7f741c3a9b3ede43573</id>
<content type='text'>
</content>
</entry>
</feed>
