Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Allow the application to explicitly request a software renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 17, 2011
1 parent 93f73fd commit d02d8e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/SDL_render.h
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/render/software/SDL_render_sw.c
Expand Up @@ -72,7 +72,7 @@ SDL_RenderDriver SW_RenderDriver = {
SW_CreateRenderer,
{
"software",
0,
SDL_RENDERER_SOFTWARE,
8,
{
SDL_PIXELFORMAT_RGB555,
Expand Down

0 comments on commit d02d8e7

Please sign in to comment.