title: Emscripten call to SDL_Init freezes Browser Textinput
body: <p>I am currently crosscompiling a Sprite Engine under mingw.
  Therefore i have 2 Questions.</p>
  
  <p>The behavior of SDL is Emulated by Emscripten through the WebGL Layer.
  i don't even have to link the SDL libraries when compiling with emcc.</p>
  
  <ol>
  <li><p>Question is:</p>
  
  <p>If i initalize my App Like this: </p>
  
  <pre><code>if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO) == -1)return -1;
  SDL_Surface *screen= SDL_SetVideoMode(640, 480,  24, SDL_SWSURFACE);
  SDL_FillRect(screen, 0, SDL_MapRGB(screen-&gt;format, 255, 0, 0));
  SDL_Flip(screen);
  </code></pre>
  
  <p>then i am NOT able to put text into a textfield of the Browser, but i am getting the SDL_Events.
  All other Browser Inputs like checkboxes or selectboxes are working.  </p>
  
  <p>If initialize my App like this (Emscripten works also without SDL_Init!):</p>
  
  <pre><code>SDL_Surface *screen= SDL_SetVideoMode(640, 480,  24, SDL_HWSURFACE);
  SDL_FillRect(screen, 0, SDL_MapRGB(screen-&gt;format, 255, 0, 0));
  SDL_Flip(screen);
  </code></pre>
  
  <p>then i am able to put tet into the browser textfield but i am not getting SDL_Events.</p>
  
  <p><strong>Is there a workaround to get the Browser Text Input Fields and SDL_Events working?</strong></p></li>
  <li><p>Question</p>
  
  <p>This line of code compiled on my WIN32 System fills the screen blue </p>
  
  <pre><code>SDL_FillRect(screen,NULL, SDL_MapRGB(screen-&gt;format, 255, 0, 0));
  </code></pre>
  
  <p>the same line compiled with Emscripten fills the screen red.</p>
  
  <p><strong>Is there a way to switch the SDL colors in Emscripten or in the SDL headers?</strong></p></li>
  </ol>