Allow the application to explicitly request a software renderer.

This commit is contained in:
Sam Lantinga 2011-02-17 12:03:48 -08:00
parent baf813b8c1
commit 3746025d7f
2 changed files with 4 additions and 3 deletions

View file

@ -63,9 +63,10 @@ extern "C" {
*/
typedef enum
{
SDL_RENDERER_ACCELERATED = 0x00000001, /**< The renderer uses hardware
SDL_RENDERER_SOFTWARE = 0x00000001, /**< The renderer is a software fallback */
SDL_RENDERER_ACCELERATED = 0x00000002, /**< The renderer uses hardware
acceleration */
SDL_RENDERER_PRESENTVSYNC = 0x00000002 /**< Present is synchronized
SDL_RENDERER_PRESENTVSYNC = 0x00000004 /**< Present is synchronized
with the refresh rate */
} SDL_RendererFlags;

View file

@ -72,7 +72,7 @@ SDL_RenderDriver SW_RenderDriver = {
SW_CreateRenderer,
{
"software",
0,
SDL_RENDERER_SOFTWARE,
8,
{
SDL_PIXELFORMAT_RGB555,