Граф коммитов

5370 Коммитов

Автор SHA1 Сообщение Дата
Alon Zakai f5d7160fb4 remove trivial whitespace 2013-03-06 18:01:23 -08:00
Alon Zakai b2adfb09ae loopify big memcpys in asm 2013-03-06 16:00:22 -08:00
Alon Zakai 1024a871a3 loopify big memsets in asm 2013-03-06 15:52:52 -08:00
Alon Zakai 76ffb6f4a6 fix IE comma issue 2013-03-06 12:50:43 -08:00
Alon Zakai 756ab650e0 enable pointer lock checkbox by default 2013-03-06 12:44:29 -08:00
Alon Zakai 154f2b7fa7 Merge pull request #845 from MichaelRiss/FullScreenEnhancement
Improved fullscreen functionality.
2013-03-06 12:37:31 -08:00
Alon Zakai 9b16e851b2 assert on no variable name collisions for #923 2013-03-06 12:30:16 -08:00
Alon Zakai 079b348773 more log output in failed emscripten subprocesses 2013-03-06 12:18:45 -08:00
Alon Zakai 1979e5ccd8 Merge pull request #929 from waywardmonkeys/remove-test-Os
Remove test_Os now that emcc supports -Os.
2013-03-06 11:52:00 -08:00
Alon Zakai 29a6a88c72 Merge pull request #848 from manuels/incoming
Add getopt and getopt_long (libc) support
2013-03-06 11:35:49 -08:00
Alon Zakai 4d3410d10e Merge pull request #920 from waywardmonkeys/fix-include-order
Search libcxx includes before others (libc).
2013-03-06 10:07:37 -08:00
Alon Zakai 273f7a00cf update csmith driver 2013-03-06 10:06:57 -08:00
Alon Zakai 3a15045ec4 Merge pull request #925 from waywardmonkeys/implement-llabs
Implement llabs().
2013-03-06 09:59:23 -08:00
Bruce Mitchener 65d5914ecb Implement llabs(). 2013-03-07 00:19:53 +07:00
Bruce Mitchener 51892b5e74 Remove test_Os now that emcc supports -Os. 2013-03-06 17:23:11 +07:00
Michael Riss aaa428216a realize fullscreen options (resize canvas and lock pointer) with checkboxes 2013-03-06 10:44:36 +01:00
Michael Riss a7fa2859f2 Fixes for the full screen implementation:
- 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 <Michael.Riss@gmx.de>
2013-03-06 10:44:36 +01:00
Michael Riss 65d005e3a2 Further improvement of the full screen support:
- SDL_WM_ToggleFullScreen now delivers correct return values,
  reflecting that for a SDL program it's impossible
  to switch to full screen mode in the browser environment

Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
2013-03-06 10:43:17 +01:00
Michael Riss b6032ff72c - fixed formatting issues
- bugfix: an existing pointerLockChange handler now gets properly
  removed before it is installed anew
- completed the implementation of the SDL_ShowCursor() function:
  - can now query the current state of the cursor/pointer
  - properly delivers adequate return values
  - added safeguard: when not in fullscreen mode, attempts to
    lock the pointer are ignored as they would fail due to the
    security model of the browser and a return value indicating the
    error is returned

Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
2013-03-06 10:43:17 +01:00
Michael Riss 0b364c0894 Improved fullscreen functionality.
- 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 <Michael.Riss@gmx.de>
2013-03-06 10:43:17 +01:00
Alon Zakai 97407b218c make -Os like -O2 but also disable inlining 2013-03-05 20:46:47 -08:00
Alon Zakai 3a2cf7e0b1 remove unnecessary recursion in relooper RemoveUnneededFlows 2013-03-05 18:52:56 -08:00
Alon Zakai 1c6b589674 remove recursion in relooper FindLive 2013-03-05 18:29:48 -08:00
Alon Zakai 21cbcab50c do not break on call/invoke to undef; fixes #914 2013-03-05 18:03:06 -08:00
Alon Zakai 87dade0f40 Merge pull request #922 from waywardmonkeys/implement-signbit
Implement signbit in terms of copysign.
2013-03-05 17:35:52 -08:00
Bruce Mitchener 1cd99d0889 Implement signbit in terms of copysign.
Currently, copysign is broken for negative zero, so this will be
as well.

Fixes #911.
2013-03-06 08:31:21 +07:00
Alon Zakai 509dc21a48 Merge pull request #924 from waywardmonkeys/implement-sched-yield
Implement stub for sched_yield().
2013-03-05 17:23:27 -08:00
Alon Zakai 566f2d6abe Merge pull request #926 from waywardmonkeys/implement-pthread-cond-timedwait
Implement stub for pthread_cond_timedwait().
2013-03-05 17:23:03 -08:00
Alon Zakai b17f3fe267 handle invoke to setjmp 2013-03-05 16:52:26 -08:00
Bruce Mitchener 9e563bb1e4 Add some return values for pthread_cond_*. 2013-03-06 07:44:55 +07:00
Bruce Mitchener 4c0a6fa14e Implement stub for sched_yield().
This was in the headers, but had no implementation resulting in
an undefined at runtime.
2013-03-06 07:38:19 +07:00
Alon Zakai 4aaed2c802 limit output in error message 2013-03-05 15:30:53 -08:00
Alon Zakai 20f003197b run compiler engine in src/ 2013-03-05 15:29:33 -08:00
Alon Zakai 570af9b25d fix coding convention stuff 2013-03-05 14:34:44 -08:00
Alon Zakai daed1bdade Merge branch 'sd-audio' of github.com:michaeljbishop/emscripten into michaeljbishop-sd-audio 2013-03-05 14:25:18 -08:00
Alon Zakai df26b7eeba add lto in benchmarks 2013-03-05 14:11:22 -08:00
manuels 6efef45cbf Add support for getopt/getopt_long 2013-03-05 22:05:11 +01:00
Alon Zakai 939740e739 Merge pull request #897 from lptr/unregister_functions
Add Runtime.removeFunction()
2013-03-05 12:47:01 -08:00
Alon Zakai 5f35f00af3 Merge pull request #908 from waywardmonkeys/fix-typos
Fix typos.
2013-03-05 12:42:19 -08:00
Alon Zakai ae342cbe2e Merge pull request #909 from waywardmonkeys/fix-stdbool-h
Ensure __bool_true_false_are_defined is defined.
2013-03-05 12:41:46 -08:00
Alon Zakai 010873fc62 Merge pull request #912 from waywardmonkeys/implement-nanosleep
Implement nanosleep.
2013-03-05 12:40:27 -08:00
Alon Zakai 469f25baf6 Merge pull request #913 from waywardmonkeys/implement-sc-nprocessors-onln
Implement _SC_NPROCESSORS_ONLN.
2013-03-05 12:38:39 -08:00
Alon Zakai 38278a6448 1.2.6 2013-03-05 11:08:24 -08:00
Alon Zakai 1700c179cd make FindLabeledLoops not recurse on ->Next 2013-03-05 11:07:57 -08:00
Alon Zakai 36898dd7a9 Merge branch 'incoming' of github.com:kripken/emscripten into incoming 2013-03-05 10:49:09 -08:00
Alon Zakai d62f6481b4 fix cache clear time saving 2013-03-05 10:46:31 -08:00
Alon Zakai 5d67258ce1 update relooper tests 2013-03-05 10:35:21 -08:00
Alon Zakai f155542ec9 1.2.5 2013-03-05 10:32:46 -08:00
Alon Zakai 09868ed911 restore jcache debugging, busted by pull #826 2013-03-05 10:23:33 -08:00
Alon Zakai 46158be251 restore jcache compression, busted by pull #826 2013-03-05 10:18:14 -08:00