author Ryan C. Gordon <>
Mon, 29 Oct 2018 20:00:03 -0400
changeset 12369 68c87b40b434
parent 10486 5bf595c48fd4
permissions -rw-r--r--
winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc).

Otherwise, we are using the allocator before the app can set up its own hooks.

Now we use VirtualAlloc, and WideCharToMultiByte (because SDL_iconv uses
SDL_malloc, too!) to get ready to call into SDL_main.

This also makes console_wmain() call into the same routines as everything
else, so we don't have to deal with those allocations, too. Hopefully we
end up with the same results from GetCommandLine() as we do in wargv.

Fixes Bugzilla #4340.
     1 Pandora 
     2 =====================================================================
     4 ( )
     5 - A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES
     6 support to work on the pandora under the framebuffer. This driver do not have
     7 input support for now, so if you use it you will have to add your own control code.
     8 The video driver name is "pandora" so if you have problem running it from
     9 the framebuffer, try to set the following variable before starting your application :
    10 "export SDL_VIDEODRIVER=pandora"
    12 - OpenGL ES support was added to the x11 driver, so it's working like the normal
    13 x11 driver one with OpenGLX support, with SDL input event's etc..
    16 David Carré (Cpasjuste)