Allow the application to explicitly request a software renderer.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Feb 2011 12:03:48 -0800
changeset 5337d5d312a82d40
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
     1.1 --- a/include/SDL_render.h	Thu Feb 17 09:26:15 2011 -0800
     1.2 +++ b/include/SDL_render.h	Thu Feb 17 12:03:48 2011 -0800
     1.3 @@ -63,9 +63,10 @@
     1.4   */
     1.5  typedef enum
     1.6  {
     1.7 -    SDL_RENDERER_ACCELERATED = 0x00000001,      /**< The renderer uses hardware 
     1.8 +    SDL_RENDERER_SOFTWARE = 0x00000001,         /**< The renderer is a software fallback */ 
     1.9 +    SDL_RENDERER_ACCELERATED = 0x00000002,      /**< The renderer uses hardware 
    1.10                                                       acceleration */
    1.11 -    SDL_RENDERER_PRESENTVSYNC = 0x00000002      /**< Present is synchronized 
    1.12 +    SDL_RENDERER_PRESENTVSYNC = 0x00000004      /**< Present is synchronized 
    1.13                                                       with the refresh rate */
    1.14  } SDL_RendererFlags;
    1.15  
     2.1 --- a/src/render/software/SDL_render_sw.c	Thu Feb 17 09:26:15 2011 -0800
     2.2 +++ b/src/render/software/SDL_render_sw.c	Thu Feb 17 12:03:48 2011 -0800
     2.3 @@ -72,7 +72,7 @@
     2.4      SW_CreateRenderer,
     2.5      {
     2.6       "software",
     2.7 -     0,
     2.8 +     SDL_RENDERER_SOFTWARE,
     2.9       8,
    2.10       {
    2.11        SDL_PIXELFORMAT_RGB555,