Allow the application to explicitly request a software renderer.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Feb 2011 12:03:48 -0800
changeset 5337 d5d312a82d40
parent 5336 66d3c4a6d6f8
child 5338 dcd605b45ee5
Allow the application to explicitly request a software renderer.
include/SDL_render.h
src/render/software/SDL_render_sw.c
--- a/include/SDL_render.h	Thu Feb 17 09:26:15 2011 -0800
+++ b/include/SDL_render.h	Thu Feb 17 12:03:48 2011 -0800
@@ -63,9 +63,10 @@
  */
 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;
 
--- a/src/render/software/SDL_render_sw.c	Thu Feb 17 09:26:15 2011 -0800
+++ b/src/render/software/SDL_render_sw.c	Thu Feb 17 12:03:48 2011 -0800
@@ -72,7 +72,7 @@
     SW_CreateRenderer,
     {
      "software",
-     0,
+     SDL_RENDERER_SOFTWARE,
      8,
      {
       SDL_PIXELFORMAT_RGB555,